From 96cc2b1d48618d04dd866d786d98dcd8e8aef0c9 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 5 Apr 2010 14:42:40 -0600 Subject: * Backed out changeset 44ff24439269 * We will implement this in a generic way using the conditions system --HG-- branch : trunk --- src/game/Item.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/game/Item.cpp') 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: -- cgit v1.2.3