aboutsummaryrefslogtreecommitdiff
path: root/src/game/Item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Item.cpp')
-rw-r--r--src/game/Item.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp
index 4c247d06be9..025a0a629aa 100644
--- a/src/game/Item.cpp
+++ b/src/game/Item.cpp
@@ -1028,22 +1028,12 @@ bool Item::IsBindedNotWith( Player const* player ) const
bool ItemRequiredTarget::IsFitToRequirements( Unit* pUnitTarget ) const
{
- float uiPercentHP;
- float uiHealth;
- float uiMaxHealth;
-
if (pUnitTarget->GetTypeId() != TYPEID_UNIT)
return false;
if (pUnitTarget->GetEntry() != m_uiTargetEntry)
return false;
- uiHealth = pUnitTarget->GetHealth();
- uiMaxHealth = pUnitTarget->GetMaxHealth();
- uiPercentHP = ((uiHealth / uiMaxHealth) * 100);
- if (m_uiMaxPercentHealth <= uiPercentHP)
- return false;
-
switch(m_uiType)
{
case ITEM_TARGET_TYPE_CREATURE: