Fix build

This commit is contained in:
QAston
2011-06-23 13:49:22 +02:00
parent 3137a82c7c
commit 31d32e28ee
+2 -2
View File
@@ -152,8 +152,8 @@ public:
bool OnUse(Player *pPlayer, Item *pItem, SpellCastTargets const& targets) bool OnUse(Player *pPlayer, Item *pItem, SpellCastTargets const& targets)
{ {
if (targets.getUnitTarget() && targets.getUnitTarget()->GetTypeId() == TYPEID_UNIT && if (targets.GetUnitTarget() && targets.GetUnitTarget()->GetTypeId() == TYPEID_UNIT &&
targets.getUnitTarget()->GetEntry() == 20748 && !targets.getUnitTarget()->HasAura(32578)) targets.GetUnitTarget()->GetEntry() == 20748 && !targets.GetUnitTarget()->HasAura(32578))
return false; return false;
pPlayer->SendEquipError(EQUIP_ERR_CANT_DO_RIGHT_NOW, pItem, NULL); pPlayer->SendEquipError(EQUIP_ERR_CANT_DO_RIGHT_NOW, pItem, NULL);