Core/Player: Invoke global cooldown when equipping relic slot items during combat.

Please report any issues you find regarding this changeset.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-11-21 16:48:08 +01:00
parent 632a976b05
commit 92a7d02184
+3 -1
View File
@@ -11694,7 +11694,7 @@ Item* Player::EquipItem(uint16 pos, Item *pItem, bool update)
_ApplyItemMods(pItem, slot, true);
if (pProto && isInCombat()&& pProto->Class == ITEM_CLASS_WEAPON && m_weaponChangeTimer == 0)
if (pProto && isInCombat() && (pProto->Class == ITEM_CLASS_WEAPON || pProto->InventoryType == INVTYPE_RELIC) && m_weaponChangeTimer == 0)
{
uint32 cooldownSpell = 6119;
@@ -11709,6 +11709,8 @@ Item* Player::EquipItem(uint16 pos, Item *pItem, bool update)
{
m_weaponChangeTimer = spellProto->StartRecoveryTime;
CastSpell(this, cooldownSpell, false); // Needed for server side GCD
WorldPacket data(SMSG_SPELL_COOLDOWN, 8+1+4);
data << uint64(GetGUID());
data << uint8(1);