Core/Auras: Implement SPELL_ATTR8_PERIODIC_CAN_CRIT
Port From (https://github.com/TrinityCore/TrinityCore/commit/fa2257681726caf16509940ef8c6d427cd85150e)
This commit is contained in:
@@ -1933,7 +1933,7 @@ namespace Framework.Constants
|
|||||||
Unk6 = 0x40, // 6
|
Unk6 = 0x40, // 6
|
||||||
Unk7 = 0x80, // 7
|
Unk7 = 0x80, // 7
|
||||||
AffectPartyAndRaid = 0x100, // 8
|
AffectPartyAndRaid = 0x100, // 8
|
||||||
DontResetPeriodicTimer = 0x200, // 9 Periodic Auras With This Flag Keep Old Periodic Timer When Refreshing At Close To One Tick Remaining (Kind Of Anti Dot Clipping)
|
PeriodicCanCrit = 0x200, // 9
|
||||||
NameChangedDuringTransofrm = 0x400, // 10
|
NameChangedDuringTransofrm = 0x400, // 10
|
||||||
Unk11 = 0x800, // 11
|
Unk11 = 0x800, // 11
|
||||||
AuraSendAmount = 0x1000, // 12 Aura Must Have Flag AflagAnyEffectAmountSent To Send Amount
|
AuraSendAmount = 0x1000, // 12 Aura Must Have Flag AflagAnyEffectAmountSent To Send Amount
|
||||||
|
|||||||
@@ -5525,7 +5525,10 @@ namespace Game.Spells
|
|||||||
if (GetSpellInfo().HasAttribute(SpellAttr2.CantCrit))
|
if (GetSpellInfo().HasAttribute(SpellAttr2.CantCrit))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
if (GetSpellInfo().HasAttribute(SpellAttr8.PeriodicCanCrit))
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
float CalcPeriodicCritChance(Unit caster)
|
float CalcPeriodicCritChance(Unit caster)
|
||||||
|
|||||||
Reference in New Issue
Block a user