*fix shapeshift bonus auras, hope i didnt brake anything

--HG--
branch : trunk
This commit is contained in:
Rat
2009-08-15 14:26:49 +02:00
parent 49990e3fee
commit 230d112282

View File

@@ -1945,14 +1945,14 @@ void AuraEffect::HandleShapeshiftBoosts(bool apply)
if(itr->first==spellId || itr->first==spellId2) continue;
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
if (!spellInfo || !(spellInfo->Attributes & (SPELL_ATTR_PASSIVE | (1<<7)))) continue;
if (spellInfo->Stances & (1<<(form-1)))
if (spellInfo->Stances & (1<<(form)))
m_target->CastSpell(m_target, itr->first, true, NULL, this);
}
//LotP
if (((Player*)m_target)->HasSpell(17007))
{
SpellEntry const *spellInfo = sSpellStore.LookupEntry(24932);
if (spellInfo && spellInfo->Stances & (1<<(form-1)))
if (spellInfo && spellInfo->Stances & (1<<(form)))
m_target->CastSpell(m_target, 24932, true, NULL, this);
}
// HotW