mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
Allow dispell positive spells by mechanic on get mechanic immune aura
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
b7c5513f2c
commit
727773e797
1 changed files with 2 additions and 3 deletions
|
|
@ -3825,9 +3825,8 @@ void Aura::HandleModMechanicImmunity(bool apply, bool Real)
|
|||
next = iter;
|
||||
++next;
|
||||
SpellEntry const *spell = iter->second->GetSpellProto();
|
||||
if (!( spell->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY) // spells unaffected by invulnerability
|
||||
&& !iter->second->IsPositive() // only remove negative spells
|
||||
&& spell->Id != GetId())
|
||||
if (!( spell->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY) && // spells unaffected by invulnerability
|
||||
spell->Id != GetId())
|
||||
{
|
||||
//check for mechanic mask
|
||||
if(GetSpellMechanicMask(spell, iter->second->GetEffIndex()) & mechanic)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue