mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
fix(Core/Creature): Mature Netherwing Drake (#1987)
* fix(Core/Creature): Mature Netherwing Drake - After eating, Mature Netherwing Drake will fly back into the air.
This commit is contained in:
@@ -310,7 +310,7 @@ public:
|
||||
uint32 EatTimer;
|
||||
uint32 CastTimer;
|
||||
|
||||
void Reset()
|
||||
void Reset() override
|
||||
{
|
||||
uiPlayerGUID = 0;
|
||||
|
||||
@@ -321,7 +321,7 @@ public:
|
||||
CastTimer = 5000;
|
||||
}
|
||||
|
||||
void SpellHit(Unit* pCaster, SpellInfo const* spell)
|
||||
void SpellHit(Unit* pCaster, SpellInfo const* spell) override
|
||||
{
|
||||
if (bCanEat || bIsEating)
|
||||
return;
|
||||
@@ -333,7 +333,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void MovementInform(uint32 type, uint32 id)
|
||||
void MovementInform(uint32 type, uint32 id) override
|
||||
{
|
||||
if (type != POINT_MOTION_TYPE)
|
||||
return;
|
||||
@@ -346,7 +346,12 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff)
|
||||
void JustReachedHome() override
|
||||
{
|
||||
me->GetMotionMaster()->Clear();
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (bCanEat || bIsEating)
|
||||
{
|
||||
@@ -383,7 +388,7 @@ public:
|
||||
}
|
||||
|
||||
Reset();
|
||||
me->GetMotionMaster()->Clear();
|
||||
me->GetMotionMaster()->MoveTargetedHome();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user