diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/outland/shadowmoon_valley.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bindings/scripts/scripts/outland/shadowmoon_valley.cpp b/src/bindings/scripts/scripts/outland/shadowmoon_valley.cpp index 9580752caca..593075c5645 100644 --- a/src/bindings/scripts/scripts/outland/shadowmoon_valley.cpp +++ b/src/bindings/scripts/scripts/outland/shadowmoon_valley.cpp @@ -55,6 +55,8 @@ enum SPELL_NETHER_BREATH = 38467, POINT_ID = 1, + GO_CARCASS = 185155, + QUEST_KINDNESS = 10804, NPC_EVENT_PINGER = 22131 }; @@ -118,7 +120,7 @@ struct TRINITY_DLL_DECL mob_mature_netherwing_drakeAI : public ScriptedAI { if (Unit* pUnit = Unit::GetUnit(*m_creature, uiPlayerGUID)) { - if (GameObject* pGo = pUnit->GetGameObject(SPELL_PLACE_CARCASS)) + if (GameObject* pGo = pUnit->FindNearestGameObject(GO_CARCASS, 10)) { if (m_creature->GetMotionMaster()->GetCurrentMovementGeneratorType() == WAYPOINT_MOTION_TYPE) m_creature->GetMotionMaster()->MovementExpired(); @@ -137,8 +139,13 @@ struct TRINITY_DLL_DECL mob_mature_netherwing_drakeAI : public ScriptedAI DoScriptText(SAY_JUST_EATEN, m_creature); if (Player* pPlr = Unit::GetPlayer(uiPlayerGUID)) + { pPlr->KilledMonsterCredit(NPC_EVENT_PINGER, m_creature->GetGUID()); + if (GameObject* pGo = pPlr->FindNearestGameObject(GO_CARCASS, 10)) + pGo->Delete(); + } + Reset(); m_creature->GetMotionMaster()->Clear(); } |