瀏覽代碼

No damage should still add aggro

Emagi 9 月之前
父節點
當前提交
7ac81a6b99
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      EQ2/source/WorldServer/Combat.cpp

+ 3 - 0
EQ2/source/WorldServer/Combat.cpp

@@ -1037,6 +1037,9 @@ bool Entity::DamageSpawn(Entity* victim, int8 type, int8 damage_type, int32 low_
 	if(damage <= 0){
 		hit_result = DAMAGE_PACKET_RESULT_NO_DAMAGE;
 		damage = 0;
+		
+		if(victim->IsNPC() && victim->GetHP() > 0)
+			((Entity*)victim)->AddHate(this, damage);
 	}
 	else{
 		hit_result = DAMAGE_PACKET_RESULT_SUCCESSFUL;