Browse Source

No damage should still add aggro

Emagi 1 year ago
parent
commit
7ac81a6b99
1 changed files with 3 additions and 0 deletions
  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;