diff options
| author | Spp <none@none> | 2010-01-30 20:48:23 +0100 |
|---|---|---|
| committer | Spp <none@none> | 2010-01-30 20:48:23 +0100 |
| commit | aee31b916436ef9aefafe46fdd18ce27a26e0b33 (patch) | |
| tree | a2ff5d6e78132cc70ff08c5523001e665ce25a8f /src/game/Player.cpp | |
| parent | ba594111782dc6cdc6ef4a5bdf74eb00618ea69d (diff) | |
Remove unnecesary item enchants checks
By Az@zel
Closes issue #382
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index e5aff30d2a1..f3383c8e5bc 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -10890,12 +10890,6 @@ uint8 Player::CanUseItem( Item *pItem, bool not_loading ) const if (getLevel() < pProto->RequiredLevel) return EQUIP_ERR_CANT_EQUIP_LEVEL_I; - if (getLevel() < pItem->GetEnchantRequiredLevel()) - return EQUIP_ERR_CANT_EQUIP_LEVEL_I; - - if (!pItem->HasEnchantRequiredSkill(this)) - return EQUIP_ERR_NO_REQUIRED_PROFICIENCY; - return EQUIP_ERR_OK; } } |
