* Backed out changeset 44ff24439269

* We will implement this in a generic way using the conditions system

--HG--
branch : trunk
This commit is contained in:
Brian committed 2010-04-05 14:42:40 -06:00
1 parent ce1280627d
commit 96cc2b1d48
4 files changed
+6 -20

No files matched your search

-10
View File
@@ -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: