Преглед изворни кода

Fix displayed attack when missed (#7093)

Fix miss when a unit dodges attack from player
eppc0330 пре 2 година
родитељ
комит
caa5cdd678
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/map/battle.cpp

+ 3 - 1
src/map/battle.cpp

@@ -8268,7 +8268,9 @@ struct Damage battle_calc_attack(int attack_type,struct block_list *bl,struct bl
 		if (d.dmg_lv == ATK_DEF /*&& attack_type&(BF_MAGIC|BF_MISC)*/) // Isn't it that additional effects don't apply if miss?
 			d.dmg_lv = ATK_MISS;
 		d.dmotion = 0;
-
+		if(bl->type == BL_PC)
+			d.div_ = 1;
+		
 		status_change *tsc = status_get_sc(target);
 
 		// Weapon Blocking has the ability to trigger on ATK_MISS as well.