diff options
author | megamage <none@none> | 2009-09-02 14:53:50 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-09-02 14:53:50 -0500 |
commit | 0da2e08a7ea9b801eeabb2b0067771a3142bfc0c (patch) | |
tree | 5d8694945f69d4f7aa8e81b06e94a43a4be82762 /src | |
parent | 5b9868f468e48bb4dbcbffeb999b0a9315bc0364 (diff) |
[fix] Mature Netherwing Drake By simon
--HG--
branch : trunk
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(); } |