Explorar o código

No damage should still add aggro

Emagi hai 9 meses
pai
achega
7ac81a6b99
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;