871 {
873 {
875 {
877 {
879
882 }
883
885 {
887 {
888 player->JumpTo(0.0f, 80.0f, false);
889
890 player->m_Events.AddEventAtOffset([player, cthun]()
891 {
892 if (cthun)
893 player->NearTeleportTo(cthun->GetPositionX(), cthun->GetPositionY(), cthun->GetPositionZ() + 10, float(rand32() % 6));
894
895 player->RemoveAurasDueToSpell(SPELL_DIGESTIVE_ACID);
896 }, 1s);
897 }
898 else
899 {
901 }
902 }, 3s);
903 }
904 }
905
906 return true;
907 }
@ NPC_EXIT_TRIGGER
Definition: boss_cthun.cpp:97
@ NPC_TRIGGER
Definition: boss_cthun.cpp:96
@ SPELL_EXIT_STOMACH
Definition: boss_cthun.cpp:72
@ SPELL_RUBBLE_ROCKY
Definition: boss_cthun.cpp:73
@ DATA_CTHUN
Definition: temple_of_ahnqiraj.h:36
void KillAllEvents(bool force)
Definition: EventProcessor.cpp:82
void AddEventAtOffset(BasicEvent *event, Milliseconds offset)
Definition: EventProcessor.h:107
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
EventProcessor m_Events
Definition: Unit.h:1792
Definition: InstanceScript.h:142