Eluna fix classic and TBC return false for item use

This commit is contained in:
Rochet2
2014-06-28 18:31:49 +03:00
committed by Foereaper
parent 1e4aa81e6a
commit fdd63cd716

View File

@@ -416,7 +416,7 @@ bool Eluna::OnUse(Player* pPlayer, Item* pItem, SpellCastTargets const& targets)
// Send equip error that shows no message // Send equip error that shows no message
// This is a hack fix to stop spell casting visual bug when a spell is not cast on use // This is a hack fix to stop spell casting visual bug when a spell is not cast on use
WorldPacket data(SMSG_INVENTORY_CHANGE_FAILURE, 18); WorldPacket data(SMSG_INVENTORY_CHANGE_FAILURE, 18);
data << uint8(83); data << uint8(59); // EQUIP_ERR_NONE / EQUIP_ERR_CANT_BE_DISENCHANTED
data << ObjectGuid(guid); data << ObjectGuid(guid);
data << ObjectGuid(uint64(0)); data << ObjectGuid(uint64(0));
data << uint8(0); data << uint8(0);