Scripts/Gilneas: improved movement handling for Horrid Abomination

This commit is contained in:
Ovahlord
2018-11-23 09:36:04 +01:00
parent a11513051b
commit adc5c6f245
2 changed files with 4 additions and 1 deletions

View File

@@ -0,0 +1 @@
UPDATE `creature` SET `MovementType`= 0, `spawndist`= 0 WHERE `ID`= 36231;

View File

@@ -100,6 +100,7 @@ class npc_gilneas_horrid_abomination : public CreatureScript
void Reset() override
{
Initialize();
me->GetMotionMaster()->MoveRandom(6.0f);
}
void SpellHit(Unit* caster, SpellInfo const* spell) override
@@ -110,7 +111,8 @@ class npc_gilneas_horrid_abomination : public CreatureScript
Talk(SAY_KEG_PLACED);
me->AttackStop();
me->SetReactState(REACT_PASSIVE);
me->GetMotionMaster()->Clear();
me->GetMotionMaster()->MovementExpired();
me->StopMoving();
_playerGUID = caster->GetGUID();
_allowEvents = true;
_events.ScheduleEvent(EVENT_ABOMINATION_KILL_ME, Seconds(2));