Script/ICC: Use existing method for getting GO auto-close-time

This commit is contained in:
Gacko
2014-05-11 15:15:43 +02:00
parent 39410b35a4
commit b76bcad46e

View File

@@ -1800,7 +1800,7 @@ class spell_icc_sprit_alarm : public SpellScriptLoader
}
if (GameObject* trap = GetCaster()->FindNearestGameObject(trapId, 5.0f))
trap->SetRespawnTime(trap->GetGOInfo()->trap.autoCloseTime);
trap->SetRespawnTime(trap->GetGOInfo()->GetAutoCloseTime());
std::list<Creature*> wards;
GetCaster()->GetCreatureListWithEntryInGrid(wards, NPC_DEATHBOUND_WARD, 150.0f);