diff options
| author | Brian <runningnak3d@gmail.com> | 2010-04-05 14:42:40 -0600 |
|---|---|---|
| committer | Brian <runningnak3d@gmail.com> | 2010-04-05 14:42:40 -0600 |
| commit | 96cc2b1d48618d04dd866d786d98dcd8e8aef0c9 (patch) | |
| tree | 454de929db3ea31505422c7bd19c74e4342bb632 /src/game/Item.cpp | |
| parent | ce1280627d7f075ec7cbd54182089714086f808e (diff) | |
* Backed out changeset 44ff24439269
* We will implement this in a generic way using the conditions system
--HG--
branch : trunk
Diffstat (limited to 'src/game/Item.cpp')
| -rw-r--r-- | src/game/Item.cpp | 10 |
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: |
