Core/Spells: rework part 5: GameObject casting
This commit is contained in:
1 parent
c901772640
commit
b6fac86b71
43 files changed
+2638
-2337
No files matched your search
@@ -1736,12 +1736,12 @@ class spell_icc_sprit_alarm : public SpellScriptLoader
|
||||
return;
|
||||
}
|
||||
|
||||
if (GameObject* trap = GetCaster()->FindNearestGameObject(trapId, 5.0f))
|
||||
if (GameObject* trap = GetGObjCaster()->FindNearestGameObject(trapId, 5.0f))
|
||||
trap->SetRespawnTime(trap->GetGOInfo()->GetAutoCloseTime() / IN_MILLISECONDS);
|
||||
|
||||
std::list<Creature*> wards;
|
||||
GetCaster()->GetCreatureListWithEntryInGrid(wards, NPC_DEATHBOUND_WARD, 150.0f);
|
||||
wards.sort(Trinity::ObjectDistanceOrderPred(GetCaster()));
|
||||
GetGObjCaster()->GetCreatureListWithEntryInGrid(wards, NPC_DEATHBOUND_WARD, 150.0f);
|
||||
wards.sort(Trinity::ObjectDistanceOrderPred(GetGObjCaster()));
|
||||
for (std::list<Creature*>::iterator itr = wards.begin(); itr != wards.end(); ++itr)
|
||||
{
|
||||
if ((*itr)->IsAlive() && (*itr)->HasAura(SPELL_STONEFORM))
|
||||
|
||||
@@ -1313,7 +1313,7 @@ class go_ulduar_tower : public GameObjectScript
|
||||
|
||||
InstanceScript* instance;
|
||||
|
||||
void Destroyed(Player* /*player*/, uint32 /*eventId*/) override
|
||||
void Destroyed(WorldObject* /*attacker*/, uint32 /*eventId*/) override
|
||||
{
|
||||
switch (me->GetEntry())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user