Fixed SHC_SHADOW_STAB damage bonus not being applied during cloaking exceed status. Remove cloaking bonus: Bonus should be granted on only cloaking exceed status, not cloaking Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
@@ -5901,9 +5901,10 @@ static int battle_calc_attack_skill_ratio(struct Damage* wd, struct block_list *
RE_LVL_DMOD(100);
break;
case SHC_SHADOW_STAB:
- skillratio += -100 + 550 * skill_lv + 5 * sstatus->pow;
+ skillratio += -100 + 550 * skill_lv;
+ skillratio += 5 * sstatus->pow;
- if( sc && sc->getSCE( SC_CLOAKINGEXCEED ) ){
+ if (wd->miscflag & SKILL_ALTDMG_FLAG) {
skillratio += 100 * skill_lv + 2 * sstatus->pow;
}
@@ -5293,6 +5293,9 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, uint
+ if (sc && sc->getSCE(SC_CLOAKINGEXCEED))
+ flag |= SKILL_ALTDMG_FLAG;
+
status_change_end(src, SC_CLOAKING);
status_change_end(src, SC_CLOAKINGEXCEED);