Ver Fonte

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

Emagi há 1 ano atrás
pai
commit
1e636ef8a9
1 ficheiros alterados com 1 adições e 1 exclusões
  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)