void AIUpdate() { if(SpawnTimer && IsTimerFinished(SpawnTimer)) { switch(GetPhase()) { case 2: Moccasin(); ResetTimer(SpawnTimer,100000); SetPhase(3); break; case 3: Ectoplasm(); ResetTimer(SpawnTimer,100000); SetPhase(4); break; case 4: BMutanus(); ResetTimer(SpawnTimer,100000); SetPhase(5); break; } } if(GetPhase() == 5 && (!Mutanus || !Mutanus->GetUnit()->isAlive())) { MoonScriptCreatureAI* Naralex = GetNearestCreature(3679); if(Naralex && Naralex->IsAlive()) { SetDisplayId(17089); Naralex->SetDisplayId(17089); Naralex->Emote("I am awake... at last", Text_Say, 5789); Naralex->GetUnit()->SetStandState(STANDSTATE_STAND); SetFlyMode(true); Naralex->SetFlyMode(true); MoveTo(-6.704030f, 200.308838f, -26.938824f); Naralex->MoveTo(-6.704030f, 200.308838f, -26.938824f); } SetPhase(6); } ParentClass::AIUpdate(); }
void OnDied(Unit* pKiller) { MoonScriptCreatureAI* mLadySacrolash = GetNearestCreature(CN_LADY_SACROLASH); if( mLadySacrolash != NULL && mLadySacrolash->IsAlive() ) { mLadySacrolash->Emote("Alythess! Your fire burns within me!", Text_Yell, 12488); } ParentClass::OnDied(pKiller); }
void OnDied(Unit* pKiller) { MoonScriptCreatureAI* mGrandWarlockAlythess = GetNearestCreature(CN_GRAND_WARLOCK_ALYTHESS); if( mGrandWarlockAlythess != NULL && mGrandWarlockAlythess->IsAlive() ) { mGrandWarlockAlythess->Emote("Sacrolash!", Text_Yell, 12492); } ParentClass::OnDied(pKiller); }