Created
March 18, 2014 21:36
-
-
Save SymbolixDEV/9630275 to your computer and use it in GitHub Desktop.
mastercall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 2df4e359d486ea9135f2534f02843edeee283721 Mon Sep 17 00:00:00 2001 | |
From: SymbolixDEV <[email protected]> | |
Date: Tue, 18 Mar 2014 23:35:10 +0200 | |
Subject: [PATCH] Hunter: Master Call Fix | |
--- | |
src/server/scripts/Spells/spell_hunter.cpp | 10 +++++++--- | |
1 file changed, 7 insertions(+), 3 deletions(-) | |
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp | |
index 6fcd01d..dc83a4b 100644 | |
--- a/src/server/scripts/Spells/spell_hunter.cpp | |
+++ b/src/server/scripts/Spells/spell_hunter.cpp | |
@@ -453,10 +453,14 @@ class spell_hun_masters_call : public SpellScriptLoader | |
// there is a possibility that this effect should access effect 0 (dummy) target, but i dubt that | |
// it's more likely that on on retail it's possible to call target selector based on dbc values | |
// anyways, we're using GetExplTargetUnit() here and it's ok | |
- if (Unit* ally = GetExplTargetUnit()) | |
+ if (Unit* target = GetExplTargetUnit()) | |
{ | |
- target->CastSpell(ally, GetEffectValue(), castMask); | |
- target->CastSpell(ally, GetSpellInfo()->Effects[EFFECT_0].CalcValue(), castMask); | |
+ target->CastSpell(target, GetEffectValue(), castMask); | |
+ target->CastSpell(target, GetSpellInfo()->Effects[EFFECT_0].CalcValue(), castMask); | |
+ target->RemoveMovementImpairingAuras(); // remove already applied root and snare from pet | |
+ target->RemoveMovementImpairingAuras(); // remove already applied root and snare from pet's target | |
+ target->CastSpell(target, GetEffectValue(), castMask); // this should remove already applied root and snare from pet's target, but not working | |
+ target->CastSpell(target, GetSpellInfo()->Effects[EFFECT_0].CalcValue(), castMask); // apply 4s root and snare immunity to pet's target | |
} | |
} | |
} | |
-- | |
1.8.5.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment