* Correctly remove two-handed weapon in off-hand slot when intended. (Talent reset if configured, switch talent spec)

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-08-17 02:58:06 +02:00
parent 6359bfb27a
commit 6a68c5cb6f
+8 -9
View File
@@ -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;
}