diff options
| author | Machiavelli <none@none> | 2009-08-17 03:17:14 +0200 |
|---|---|---|
| committer | Machiavelli <none@none> | 2009-08-17 03:17:14 +0200 |
| commit | 6b6963c66d7c864c7dd0abe0162cce7848055d48 (patch) | |
| tree | efdb10b693fb0d9824d70e75bcc56f28fe0a1b7e /src/game/Player.cpp | |
| parent | b9f1f9232d6a8a9c43cc5253d3683060ec4dc670 (diff) | |
* Change CONFIG_OFFHAND_CHECK_AT_TALENTS_RESET to CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN, and change behaviour related to the value.
Note: Update your configuration file.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index f555404b772..8c0843385d2 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -3561,12 +3561,11 @@ 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(); - } - + + if(sWorld.getConfig(CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN)) + AutoUnequipOffhandIfNeed(); + // remove from spell book if not replaced by lesser rank if(!prev_activate) { @@ -21867,7 +21866,6 @@ void Player::ActivateSpec(uint8 spec) _LoadActions(result, false); } UnsummonPetTemporaryIfAny(); - AutoUnequipOffhandIfNeed(); SendActionButtons(1); SetPower(getPowerType(), 0); } |
