Core/Spells: Named and implemented most of SpellAttr7
Port From (https://github.com/TrinityCore/TrinityCore/commit/4e87bd7942d932225436940f62e26d48719a42dd)
This commit is contained in:
@@ -1917,7 +1917,7 @@ namespace Game.Entities
|
||||
return duration;
|
||||
|
||||
// some auras are not affected by duration modifiers
|
||||
if (spellInfo.HasAttribute(SpellAttr7.IgnoreDurationMods))
|
||||
if (spellInfo.HasAttribute(SpellAttr7.NoTargetDurationMod))
|
||||
return duration;
|
||||
|
||||
// cut duration only of negative effects
|
||||
@@ -2163,7 +2163,7 @@ namespace Game.Entities
|
||||
reflectchance += victim.GetTotalAuraModifierByMiscMask(AuraType.ReflectSpellsSchool, (int)spellInfo.GetSchoolMask());
|
||||
|
||||
if (reflectchance > 0 && RandomHelper.randChance(reflectchance))
|
||||
return SpellMissInfo.Reflect;
|
||||
return spellInfo.HasAttribute(SpellAttr7.ReflectionOnlyDefends) ? SpellMissInfo.Deflect : SpellMissInfo.Reflect;
|
||||
}
|
||||
|
||||
if (spellInfo.HasAttribute(SpellAttr3.AlwaysHit))
|
||||
|
||||
Reference in New Issue
Block a user