102 {
104 {
106 {
108 {
109 caster->m_Events.AddEventAtOffset([caster]()
110 {
112 {
113 lure->DespawnOrUnsummon(5s);
114 caster->m_Events.AddEventAtOffset([caster]()
115 {
116 if (!caster->FindNearestCreature(NPC_GAHZRANKA, 50.0f))
117 {
118 caster->CastSpell(caster, SPELL_SPLASH, true);
119 caster->SummonCreature(NPC_GAHZRANKA, -11688.5f, -1723.74f, -5.78f, 0.f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5 * DAY * IN_MILLISECONDS);
120 }
121 }, 5s);
122 }
123 }, 2s);
124 }
125 }
126 }
127 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:53
@ GAMEOBJECT_MUDSKUNK_LURE
Definition: boss_gahzranka.cpp:35
@ NPC_GAHZRANKA
Definition: zulgurub.h:69
@ DATA_GAHZRANKA
Definition: zulgurub.h:39
Definition: GameObject.h:120
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:2380
Definition: InstanceScript.h:142
Unit * GetCaster()
Definition: SpellScript.cpp:401