178 {
180
183 {
184 if (!creature->IsHostileTo(player))
185 {
187
188 switch (creature->GetEntry())
189 {
190 case 22811:
192 break;
193 case 22812:
195 break;
196 case 22810:
198 break;
199 case 22813:
201 break;
202 case 22815:
204 break;
205 case 22814:
207 break;
208 }
209
211 creature->CastSpell(player,
Spell,
false);
212 }
213 }
214
215 return false;
216 }
std::uint32_t uint32
Definition: Define.h:108
@ TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT
Definition: Object.h:45
@ SPELL_REP_KT
Definition: go_scripts.cpp:162
@ SPELL_REP_CON
Definition: go_scripts.cpp:161
@ SPELL_REP_SPOR
Definition: go_scripts.cpp:163
@ SPELL_REP_LC
Definition: go_scripts.cpp:158
@ SPELL_REP_SHAT
Definition: go_scripts.cpp:159
@ SPELL_REP_CE
Definition: go_scripts.cpp:160
const uint32 NpcPrisonEntry[]
Definition: go_scripts.cpp:166
Definition: Creature.h:46
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2318
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
float GetAngle(const Position *pos) const
Definition: Position.cpp:77