Fix build
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user