Core: Code cleanup (here and there)

This commit is contained in:
Spp-
2011-09-05 14:01:50 +02:00
parent 35680c2f1f
commit 3fac9914be
6 changed files with 94 additions and 102 deletions
+1 -5
View File
@@ -12093,11 +12093,7 @@ Item* Player::EquipItem(uint16 pos, Item *pItem, bool update)
if (pProto && isInCombat() && (pProto->Class == ITEM_CLASS_WEAPON || pProto->InventoryType == INVTYPE_RELIC) && m_weaponChangeTimer == 0)
{
uint32 cooldownSpell = 6119;
if (getClass() == CLASS_ROGUE)
cooldownSpell = 6123;
uint32 cooldownSpell = getClass() == CLASS_ROGUE ? 6123 : 6119;
SpellInfo const* spellProto = sSpellMgr->GetSpellInfo(cooldownSpell);
if (!spellProto)