Core/Spells: Rename SpellAttr3 to use official attribute names
Port From (https://github.com/TrinityCore/TrinityCore/commit/88d7b58a3dd8b0eb95c233a20c1608ddce73d9ea)
This commit is contained in:
@@ -1564,7 +1564,7 @@ namespace Game.Spells
|
||||
if (existingAura.GetSpellInfo().IsChanneled())
|
||||
return true;
|
||||
|
||||
if (m_spellInfo.HasAttribute(SpellAttr3.StackForDiffCasters))
|
||||
if (m_spellInfo.HasAttribute(SpellAttr3.DotStackingRule))
|
||||
return true;
|
||||
|
||||
// check same periodic auras
|
||||
@@ -1820,6 +1820,14 @@ namespace Game.Spells
|
||||
}
|
||||
}
|
||||
|
||||
if (m_spellInfo.HasAttribute(SpellAttr3.OnlyProcOutdoors))
|
||||
if (!target.IsOutdoors())
|
||||
return 0;
|
||||
|
||||
if (m_spellInfo.HasAttribute(SpellAttr3.OnlyProcOnCaster))
|
||||
if (target.GetGUID() != GetCasterGUID())
|
||||
return 0;
|
||||
|
||||
bool success = RandomHelper.randChance(CalcProcChance(procEntry, eventInfo));
|
||||
|
||||
SetLastProcAttemptTime(now);
|
||||
|
||||
Reference in New Issue
Block a user