mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Scripts/Gilneas: improved movement handling for Horrid Abomination
This commit is contained in:
1
sql/updates/world/custom/custom_2018_11_23_01_world.sql
Normal file
1
sql/updates/world/custom/custom_2018_11_23_01_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE `creature` SET `MovementType`= 0, `spawndist`= 0 WHERE `ID`= 36231;
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user