aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-08-17 02:58:06 +0200
committerMachiavelli <none@none>2009-08-17 02:58:06 +0200
commit6a68c5cb6fdd43b8828dc2bf9644932cf23e2953 (patch)
treeb34400754c31fa45309818d6a0879b4c5a7c5461 /src
parent6359bfb27ac42392dc3a314fc5fe194964485931 (diff)
* Correctly remove two-handed weapon in off-hand slot when intended. (Talent reset if configured, switch talent spec)
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Player.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 40dc8b21c62..c1db42267fc 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -3559,7 +3559,14 @@ void Player::removeSpell(uint32 spell_id, bool disabled, bool learn_low_rank)
}
}
}
-
+
+ if(spell_id == 46917 && m_canTitanGrip)
+ {
+ SetCanTitanGrip(false);
+ if(sWorld.getConfig(CONFIG_OFFHAND_CHECK_AT_TALENTS_RESET))
+ AutoUnequipOffhandIfNeed();
+ }
+
// remove from spell book if not replaced by lesser rank
if(!prev_activate)
{
@@ -3831,14 +3838,6 @@ bool Player::resetTalents(bool no_cost)
}
*/
-
- if(m_canTitanGrip)
- {
- m_canTitanGrip = false;
- if(sWorld.getConfig(CONFIG_OFFHAND_CHECK_AT_TALENTS_RESET))
- AutoUnequipOffhandIfNeed();
- }
-
return true;
}