[12666] Fix strange typo in Player::ApplyEquipSpell

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
This commit is contained in:
Dramacydal 2013-08-09 01:40:12 +03:00 committed by Antz
parent 48568c3219
commit 00e0be6ed4
2 changed files with 5 additions and 17 deletions

View file

@ -7471,24 +7471,12 @@ void Player::ApplyEquipSpell(SpellEntry const* spellInfo, Item* item, bool apply
if (form_change) // check aura active state from other form
{
bool found = false;
for (int k = 0; k < MAX_EFFECT_INDEX; ++k)
SpellAuraHolderBounds spair = GetSpellAuraHolderBounds(spellInfo->Id);
for (SpellAuraHolderMap::const_iterator iter = spair.first; iter != spair.second; ++iter)
{
SpellAuraHolderBounds spair = GetSpellAuraHolderBounds(spellInfo->Id);
for (SpellAuraHolderMap::const_iterator iter = spair.first; iter != spair.second; ++iter)
{
if (!item || iter->second->GetCastItemGuid() == item->GetObjectGuid())
{
found = true;
break;
}
}
if (found)
break;
if (!item || iter->second->GetCastItemGuid() == item->GetObjectGuid())
return; // and skip re-cast already active aura at form change
}
if (found) // and skip re-cast already active aura at form change
return;
}
DEBUG_LOG("WORLD: cast %s Equip spellId - %i", (item ? "item" : "itemset"), spellInfo->Id);