소스 검색

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

Emagi 1 년 전
부모
커밋
1e636ef8a9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)