232 if (!creature->IsHostileTo(player))
238 switch (pFaction->Faction)
249 creature->CastSpell(player, Spell,
false);
251 TC_LOG_ERROR(
"scripts",
"go_ethereum_prison summoned Creature (entry %u) but faction (%u) are not expected by script.", creature->GetEntry(), creature->getFaction());
Definition: Creature.h:467
Definition: go_scripts.cpp:207
float GetPositionY() const
Definition: Position.h:105
float GetPositionZ() const
Definition: Position.h:106
float GetAngle(Position const *pos) const
Definition: Position.cpp:63
uint32_t uint32
Definition: Define.h:150
Definition: go_scripts.cpp:205
void UseDoorOrButton(uint32 time_to_restore=0, bool alternative=false, Unit *user=NULL)
Definition: GameObject.cpp:1182
Definition: DBCStructure.h:433
Definition: go_scripts.cpp:210
Definition: go_scripts.cpp:206
const uint32 NpcPrisonEntry[]
Definition: go_scripts.cpp:213
uint32 rand32()
Definition: Random.cpp:64
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
Definition: go_scripts.cpp:209
float GetPositionX() const
Definition: Position.h:104
Definition: go_scripts.cpp:208
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
Definition: Object.cpp:2346