Core/Spells: Named and implemented most of SpellAttr8

This commit is contained in:
Shauren authored and Ovahlord committed 2023-10-23 18:07:05 +02:00
1 parent 1dfe0f0974
commit 388c504047
14 files changed
+248 -153

No files matched your search

+2 -2
View File
@@ -3127,7 +3127,7 @@ bool Player::HandlePassiveSpellLearn(SpellInfo const* spellInfo)
}
}
if (spellInfo->HasAttribute(SPELL_ATTR8_MASTERY_SPECIALIZATION))
if (spellInfo->HasAttribute(SPELL_ATTR8_MASTERY_AFFECTS_POINTS))
need_cast &= IsCurrentSpecMasterySpell(spellInfo);
//Check CasterAuraStates
@@ -26941,7 +26941,7 @@ void Player::UpdateArmorSpecialization()
for (AuraApplicationMap::iterator itr = m_appliedAuras.begin(); itr != m_appliedAuras.end();)
{
SpellInfo const* spell = itr->second->GetBase()->GetSpellInfo();
if (spell->AttributesEx8 & SPELL_ATTR8_ARMOR_SPECIALIZATION)
if (spell->AttributesEx8 & SPELL_ATTR8_REQUIRES_EQUIPPED_INV_TYPES)
RemoveAura(itr);
else
++itr;