Skip to content
Permalink
Browse files

[3154] Fix Mature Netherwing Drake flight behavior

Close #178
  • Loading branch information
xfurry committed Aug 16, 2015
1 parent 42c495f commit 4f12a4c3e307ddb4133bf24f8786dc25c05e35a2
Showing with 8 additions and 2 deletions.
  1. +7 −1 scripts/outland/shadowmoon_valley.cpp
  2. +1 −1 sd2_revision_nr.h
@@ -103,6 +103,11 @@ struct mob_mature_netherwing_drakeAI : public ScriptedAI
}
}

void JustReachedHome() override
{
m_creature->GetMotionMaster()->Clear();
}

void UpdateAI(const uint32 uiDiff) override
{
if (m_uiEatTimer)
@@ -119,6 +124,7 @@ struct mob_mature_netherwing_drakeAI : public ScriptedAI
float fX, fY, fZ;
pGo->GetContactPoint(m_creature, fX, fY, fZ, CONTACT_DISTANCE);

m_creature->SetWalk(false);
m_creature->GetMotionMaster()->MovePoint(1, fX, fY, fZ);
}
m_uiEatTimer = 0;
@@ -142,7 +148,7 @@ struct mob_mature_netherwing_drakeAI : public ScriptedAI
Reset();
m_creature->SetLevitate(true);
m_creature->SetByteFlag(UNIT_FIELD_BYTES_1, 3, UNIT_BYTE1_FLAG_FLY_ANIM);
m_creature->GetMotionMaster()->Clear();
m_creature->GetMotionMaster()->MoveTargetedHome();
m_uiCreditTimer = 0;
}
else
@@ -1,4 +1,4 @@
#ifndef __SD2_REVISION_NR_H__
#define __SD2_REVISION_NR_H__
#define SD2_REVISION_NR "3153"
#define SD2_REVISION_NR "3154"
#endif // __SD2_REVISION_NR_H__

2 comments on commit 4f12a4c

@Rushor

This comment has been minimized.

Copy link

@Rushor Rushor replied Aug 17, 2015

i think this npc should restart it's path if it's reached it's homepositions

me->GetMotionMaster()->MovePath(me->GetDBTableGUIDLow() * 10, true);

@Rushor

This comment has been minimized.

Copy link

@Rushor Rushor replied Aug 17, 2015

yeah whatever :D just wanted to add that this may cause the issue that the creature will not resume the wppath

Please sign in to comment.
You can’t perform that action at this time.