mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7068] Use area aura duration for apply aura on unit in area
Allow remove SPELL_ATTR_EX_UNAFFECTED_BY_SCHOOL_IMMUNE spells by 31224 Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
f956a3bf10
commit
dd2a59f56d
3 changed files with 4 additions and 5 deletions
|
|
@ -1886,11 +1886,9 @@ void Spell::EffectTriggerSpell(uint32 i)
|
|||
{
|
||||
// remove all harmful spells on you...
|
||||
if( // ignore positive and passive auras
|
||||
!iter->second->IsPositive() && !iter->second->IsPassive() &&
|
||||
!iter->second->IsPositive() && !iter->second->IsPassive() &&
|
||||
// ignore physical auras
|
||||
(GetSpellSchoolMask(iter->second->GetSpellProto()) & SPELL_SCHOOL_MASK_NORMAL)==0 &&
|
||||
// ignore immunity persistent spells
|
||||
!( iter->second->GetSpellProto()->AttributesEx & 0x10000 ) )
|
||||
(GetSpellSchoolMask(iter->second->GetSpellProto()) & SPELL_SCHOOL_MASK_NORMAL)==0 )
|
||||
{
|
||||
m_caster->RemoveAurasDueToSpell(iter->second->GetSpellProto()->Id);
|
||||
iter = Auras.begin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue