aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-10-02 03:32:08 -0300
committerariel- <ariel-@users.noreply.github.com>2016-10-02 03:32:08 -0300
commitdf0f88eb80a79f43173ed2d708738ec945b9a755 (patch)
tree422d366a03830f2a2993b721696d9b8c4bc55113 /src
parentb2fbd2c75df72034cc613b1a0054916f454f16ce (diff)
Core/Player: unconditionally remove Titan's grip penalty aura on Spell removal
Was causing an issue when switching spec, because off hand weapon was still equipped
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Player/Player.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index e91807aa5f9..881625dd7c3 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -3817,7 +3817,10 @@ void Player::RemoveSpell(uint32 spell_id, bool disabled, bool learn_low_rank)
}
if (spell_id == 46917 && m_canTitanGrip)
+ {
+ RemoveAurasDueToSpell(m_titanGripPenaltySpellId);
SetCanTitanGrip(false);
+ }
if (spell_id == 674 && m_canDualWield)
SetCanDualWield(false);
@@ -13316,9 +13319,6 @@ void Player::SetCanTitanGrip(bool value, uint32 penaltySpellId /*= 0*/)
if (value == m_canTitanGrip)
return;
- if (!value)
- CheckTitanGripPenalty();
-
m_canTitanGrip = value;
m_titanGripPenaltySpellId = penaltySpellId;
}