diff options
author | Killyana <morphone1@gmail.com> | 2020-01-09 23:10:46 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-12-20 21:07:28 +0100 |
commit | e9ba28afc99e1de85d84ba92928accfc53909619 (patch) | |
tree | 3cd5db3c5c039b17e7835bd24521b99bd1f5b10e /src | |
parent | 18c53d4d184e052cea8c0f690c6f48f904d1b1ec (diff) |
Quest/Scripts: Remove some hacks from "Trolls Is Gone Crazy!"
(cherry picked from commit a149261e94b676cf090b37d085578e08d0ebffd0)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Northrend/zone_zuldrak.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/server/scripts/Northrend/zone_zuldrak.cpp b/src/server/scripts/Northrend/zone_zuldrak.cpp index 09c48833294..7bc4aac1b53 100644 --- a/src/server/scripts/Northrend/zone_zuldrak.cpp +++ b/src/server/scripts/Northrend/zone_zuldrak.cpp @@ -38,8 +38,8 @@ enum DrakuruShackles { NPC_RAGECLAW = 29686, QUEST_TROLLS_IS_GONE_CRAZY = 12861, - SPELL_LEFT_CHAIN = 59951, - SPELL_RIGHT_CHAIN = 59952, + SPELL_CHAIN_OF_THE_SCURGE_RIGHT = 54990, + SPELL_CHAIN_OF_THE_SCURGE_LEFT = 55009, SPELL_UNLOCK_SHACKLE = 55083, SPELL_FREE_RAGECLAW = 55223 }; @@ -73,9 +73,6 @@ public: // pointer check not needed me->SetFacingToObject(rageclaw); rageclaw->SetFacingToObject(me); - - DoCast(rageclaw, SPELL_LEFT_CHAIN, true); - DoCast(rageclaw, SPELL_RIGHT_CHAIN, true); } void UnlockRageclaw(Unit* who, Creature* rageclaw) @@ -99,6 +96,7 @@ public: { UnlockRageclaw(caster, rageclaw); caster->ToPlayer()->KilledMonster(rageclaw->GetCreatureTemplate(), _rageclawGUID); + me->RemoveAurasDueToSpell(SPELL_CHAIN_OF_THE_SCURGE_RIGHT); me->DespawnOrUnsummon(); } else @@ -124,7 +122,6 @@ public: enum Rageclaw { SPELL_UNSHACKLED = 55085, - SPELL_KNEEL = 39656, SAY_RAGECLAW = 0 }; @@ -140,7 +137,7 @@ public: void Reset() override { me->SetFaction(FACTION_FRIENDLY); - DoCast(me, SPELL_KNEEL, true); // Little Hack for kneel - Thanks Illy :P + DoCast(me, SPELL_CHAIN_OF_THE_SCURGE_RIGHT, true); } void MoveInLineOfSight(Unit* /*who*/) override { } @@ -149,9 +146,8 @@ public: { if (spell->Id == SPELL_FREE_RAGECLAW) { - me->RemoveAurasDueToSpell(SPELL_LEFT_CHAIN); - me->RemoveAurasDueToSpell(SPELL_RIGHT_CHAIN); - me->RemoveAurasDueToSpell(SPELL_KNEEL); + me->RemoveAurasDueToSpell(SPELL_CHAIN_OF_THE_SCURGE_LEFT); + me->SetStandState(UNIT_STAND_STATE_STAND); me->SetFaction(me->GetCreatureTemplate()->faction); DoCast(me, SPELL_UNSHACKLED, true); Talk(SAY_RAGECLAW); |