Core/Spells: spells with SPELL_ATTR1_NO_THREAT also causes no initial aggro

This commit is contained in:
joschiwald
2016-02-10 22:35:23 +01:00
parent 62aff401f6
commit b4b43d03b3
4 changed files with 10 additions and 12 deletions

View File

@@ -1180,6 +1180,11 @@ bool SpellInfo::IsAutoRepeatRangedSpell() const
return HasAttribute(SPELL_ATTR2_AUTOREPEAT_FLAG);
}
bool SpellInfo::HasInitialAggro() const
{
return !(HasAttribute(SPELL_ATTR1_NO_THREAT) || HasAttribute(SPELL_ATTR3_NO_INITIAL_AGGRO));
}
bool SpellInfo::IsAffectedBySpellMods() const
{
return !HasAttribute(SPELL_ATTR3_NO_DONE_BONUS);