Core/Spells: Implement SPELL_ATTR7_IGNORE_DURATION_MODS attribute

This commit is contained in:
Shocker committed 2014-08-13 03:53:56 +03:00
1 parent 1890649b0e
commit 07158af425
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -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)
{