Browse Source

Fix wards wearing off after one hit when the max count is not set

Emagi 1 year ago
parent
commit
1e636ef8a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/Entity.cpp

+ 1 - 1
EQ2/source/WorldServer/Entity.cpp

@@ -2137,7 +2137,7 @@ int32 Entity::CheckWards(Entity* attacker, int32 damage, int8 damage_type) {
 			ClientPacketFunctions::SendMaintainedExamineUpdate(spell->caster->GetZone()->GetClientBySpawn(spell->caster), spell->slot_pos, spell->num_triggers, 0);
 		}
 		
-		if (ward->HitCount >= ward->MaxHitCount) // there isn't a max hit requirement with the hit count, so just go based on hit count
+		if (ward->MaxHitCount && ward->HitCount >= ward->MaxHitCount) // there isn't a max hit requirement with the hit count, so just go based on hit count
 			shouldRemoveSpell = true;
 
 		if (shouldRemoveSpell && !hasSpellBeenRemoved)