Quest/script: Freedom to Ruul

Follows 4dc91429dd

(cherry picked from commit 52fc5a572b)
This commit is contained in:
Killyana
2018-01-28 15:15:50 +01:00
committed by Shauren
parent 30feaa06e8
commit 2d43b8aaa3

View File

@@ -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