* 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:
+7
-8
@@ -3560,6 +3560,13 @@ 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
|
// remove from spell book if not replaced by lesser rank
|
||||||
if(!prev_activate)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user