mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Quest/script: Freedom to Ruul
Follows4dc91429dd(cherry picked from commit52fc5a572b)
This commit is contained in:
@@ -116,6 +116,7 @@ public:
|
||||
me->SummonCreature(NPC_THISTLEFUR_PATHFINDER, RuulSnowhoofSummonsCoord[5], TEMPSUMMON_DEAD_DESPAWN, 60000);
|
||||
break;
|
||||
case 27:
|
||||
me->SetFaction(me->GetCreatureTemplate()->faction);
|
||||
me->RemoveAurasDueToSpell(RUUL_SHAPECHANGE);
|
||||
Talk(SAY_FINISH, player);
|
||||
player->GroupEventHappens(QUEST_FREEDOM_TO_RUUL, me);
|
||||
@@ -127,6 +128,13 @@ public:
|
||||
{
|
||||
EscortAI::UpdateAI(diff);
|
||||
}
|
||||
|
||||
void EnterEvadeMode(EvadeReason why) override
|
||||
{
|
||||
if (!me->HasAura(RUUL_SHAPECHANGE))
|
||||
me->AddAura(RUUL_SHAPECHANGE, me);
|
||||
ScriptedAI::EnterEvadeMode(why);
|
||||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
|
||||
Reference in New Issue
Block a user