*fix shapeshift bonus auras, hope i didnt brake anything
--HG-- branch : trunk
This commit is contained in:
@@ -1945,14 +1945,14 @@ void AuraEffect::HandleShapeshiftBoosts(bool apply)
|
|||||||
if(itr->first==spellId || itr->first==spellId2) continue;
|
if(itr->first==spellId || itr->first==spellId2) continue;
|
||||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
SpellEntry const *spellInfo = sSpellStore.LookupEntry(itr->first);
|
||||||
if (!spellInfo || !(spellInfo->Attributes & (SPELL_ATTR_PASSIVE | (1<<7)))) continue;
|
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);
|
m_target->CastSpell(m_target, itr->first, true, NULL, this);
|
||||||
}
|
}
|
||||||
//LotP
|
//LotP
|
||||||
if (((Player*)m_target)->HasSpell(17007))
|
if (((Player*)m_target)->HasSpell(17007))
|
||||||
{
|
{
|
||||||
SpellEntry const *spellInfo = sSpellStore.LookupEntry(24932);
|
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);
|
m_target->CastSpell(m_target, 24932, true, NULL, this);
|
||||||
}
|
}
|
||||||
// HotW
|
// HotW
|
||||||
|
|||||||
Reference in New Issue
Block a user