mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 13:37:02 +00:00
[12666] Fix strange typo in Player::ApplyEquipSpell
Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
This commit is contained in:
parent
48568c3219
commit
00e0be6ed4
2 changed files with 5 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue