feat(Core/Spell): Header include optimization for files: SpellAura.h SpellAuraEffects.h (#2632)

This commit is contained in:
niaro-kitty
2020-02-19 09:55:18 +03:00
committed by GitHub
parent 38e8503d21
commit 32dcb3bf63
5 changed files with 46 additions and 12 deletions

View File

@@ -416,6 +416,26 @@ void AuraEffect::GetApplicationList(std::list<AuraApplication*> & applicationLis
}
}
uint32 AuraEffect::GetId() const
{
return m_spellInfo->Id;
}
int32 AuraEffect::GetMiscValueB() const
{
return m_spellInfo->Effects[m_effIndex].MiscValueB;
}
int32 AuraEffect::GetMiscValue() const
{
return m_spellInfo->Effects[m_effIndex].MiscValue;
}
AuraType AuraEffect::GetAuraType() const
{
return (AuraType)m_spellInfo->Effects[m_effIndex].ApplyAuraName;
}
int32 AuraEffect::CalculateAmount(Unit* caster)
{
int32 amount;
@@ -1048,6 +1068,11 @@ bool AuraEffect::IsAffectedOnSpell(SpellInfo const* spell) const
return false;
}
bool AuraEffect::HasSpellClassMask() const
{
return m_spellInfo->Effects[m_effIndex].SpellClassMask;
}
void AuraEffect::SendTickImmune(Unit* target, Unit* caster) const
{
if (caster)