Selaa lähdekoodia

Fixed SHC_SHADOW_STAB damage bonus (#8288)

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>
eppc0330 1 vuosi sitten
vanhempi
commit
c8cbc2e3a1
2 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  1. 3 2
      src/map/battle.cpp
  2. 3 0
      src/map/skill.cpp

+ 3 - 2
src/map/battle.cpp

@@ -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;
 			}
 

+ 3 - 0
src/map/skill.cpp

@@ -5293,6 +5293,9 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl, uint
 		break;
 
 	case SHC_SHADOW_STAB:
+		if (sc && sc->getSCE(SC_CLOAKINGEXCEED))
+			flag |= SKILL_ALTDMG_FLAG;
+
 		status_change_end(src, SC_CLOAKING);
 		status_change_end(src, SC_CLOAKINGEXCEED);