Skip to content

Commit

Permalink
fix(Core/CreatureScript): fix Skadi / Grauf text error (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoabrogga authored Jul 15, 2019
1 parent 7b105b7 commit 53b74a6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ enum Misc
SAY_KILL = 1,
EMOTE_RANGE = 2,
SAY_DEATH = 3,
SAY_DRAKE_DEATH = 4,
EMOTE_BREATH = 5,
SAY_DRAKE_DEATH = 5,
SAY_DRAKE_BREATH = 6,

// SPELLS
Expand Down Expand Up @@ -297,7 +296,9 @@ class boss_skadi_grauf : public CreatureScript
}
else if (param == ACTION_REMOVE_SKADI)
{
Talk(SAY_DRAKE_DEATH);
if (Unit *passenger = me->GetVehicleKit()->GetPassenger(0))
if (Creature *skadi = passenger->ToCreature())
skadi->AI()->Talk(SAY_DRAKE_DEATH);
me->GetMotionMaster()->MovePoint(10, 480.0f, -513.0f, 108.0f);
events.ScheduleEvent(EVENT_GRAUF_REMOVE_SKADI, 2000);
}
Expand Down

0 comments on commit 53b74a6

Please sign in to comment.