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 EatTimer;
|
||||||
uint32 CastTimer;
|
uint32 CastTimer;
|
||||||
|
|
||||||
void Reset()
|
void Reset() override
|
||||||
{
|
{
|
||||||
uiPlayerGUID = 0;
|
uiPlayerGUID = 0;
|
||||||
|
|
||||||
@@ -321,7 +321,7 @@ public:
|
|||||||
CastTimer = 5000;
|
CastTimer = 5000;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpellHit(Unit* pCaster, SpellInfo const* spell)
|
void SpellHit(Unit* pCaster, SpellInfo const* spell) override
|
||||||
{
|
{
|
||||||
if (bCanEat || bIsEating)
|
if (bCanEat || bIsEating)
|
||||||
return;
|
return;
|
||||||
@@ -333,7 +333,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MovementInform(uint32 type, uint32 id)
|
void MovementInform(uint32 type, uint32 id) override
|
||||||
{
|
{
|
||||||
if (type != POINT_MOTION_TYPE)
|
if (type != POINT_MOTION_TYPE)
|
||||||
return;
|
return;
|
||||||
@@ -346,7 +346,12 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateAI(uint32 diff)
|
void JustReachedHome() override
|
||||||
|
{
|
||||||
|
me->GetMotionMaster()->Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateAI(uint32 diff) override
|
||||||
{
|
{
|
||||||
if (bCanEat || bIsEating)
|
if (bCanEat || bIsEating)
|
||||||
{
|
{
|
||||||
@@ -383,7 +388,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
Reset();
|
Reset();
|
||||||
me->GetMotionMaster()->Clear();
|
me->GetMotionMaster()->MoveTargetedHome();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user