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:120
uint32 GetDisplayId() const
Definition: GameObject.h:310
GameObject * ToGameObject()
Definition: Object.h:213
static void VisitAllObjects(WorldObject const *obj, T &visitor, float radius, bool dont_load=true)
Definition: CellImpl.h:206
Definition: GridNotifiers.h:239
Definition: GridNotifiers.h:1586
GameObject * GetHitGObj()
Definition: SpellScript.cpp:494
Unit * GetCaster()
Definition: SpellScript.cpp:401