496 {
498 std::list<WorldObject*> cagesList;
502 for (std::list<WorldObject*>::const_iterator itr = cagesList.begin(); itr != cagesList.end(); ++itr)
503 {
506 go->UseDoorOrButton(0,
false,
GetCaster());
507 }
508 }
Definition: GameObject.h:121
uint32 GetDisplayId() const
Definition: GameObject.h:311
GameObject * ToGameObject()
Definition: Object.h:210
static void VisitAllObjects(WorldObject const *obj, T &visitor, float radius, bool dont_load=true)
Definition: CellImpl.h:207
Definition: GridNotifiers.h:239
Definition: GridNotifiers.h:1586
GameObject * GetHitGObj()
Definition: SpellScript.cpp:494
Unit * GetCaster()
Definition: SpellScript.cpp:401