Core/Spells: Implement SPELL_ATTR7_IGNORE_DURATION_MODS attribute
This commit is contained in:
1 parent
1890649b0e
commit
07158af425
2 files changed
+5
-1
No files matched your search
@@ -12791,6 +12791,10 @@ int32 Unit::ModSpellDuration(SpellInfo const* spellProto, Unit const* target, in
|
||||
if (duration < 0)
|
||||
return duration;
|
||||
|
||||
// some auras are not affected by duration modifiers
|
||||
if (spellProto->AttributesEx7 & SPELL_ATTR7_IGNORE_DURATION_MODS)
|
||||
return duration;
|
||||
|
||||
// cut duration only of negative effects
|
||||
if (!positive)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user