166 {
168 {
170 {
172 {
173 caster->m_Events.AddEventAtOffset([caster]()
174 {
176 {
177 lure->DespawnOrUnsummon(5s);
178 caster->m_Events.AddEventAtOffset([caster]()
179 {
180 if (!caster->FindNearestCreature(NPC_GAHZRANKA, 50.0f))
181 {
182 caster->CastSpell(caster, SPELL_SPLASH, true);
183 caster->SummonCreature(NPC_GAHZRANKA, -11688.5f, -1723.74f, -5.78f, 0.f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5 * DAY * IN_MILLISECONDS);
184 }
185 }, 5s);
186 }
187 }, 2s);
188 }
189 }
190 }
191 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:53
@ GAMEOBJECT_MUDSKUNK_LURE
Definition: boss_gahzranka.cpp:48
@ NPC_GAHZRANKA
Definition: zulgurub.h:69
@ DATA_GAHZRANKA
Definition: zulgurub.h:39
Definition: GameObject.h:121
GameObject * SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
Definition: Object.cpp:2369
Definition: InstanceScript.h:142
Unit * GetCaster()
Definition: SpellScript.cpp:401