Core/Auras: Implement SPELL_ATTR8_PERIODIC_CAN_CRIT

Port From (https://github.com/TrinityCore/TrinityCore/commit/fa2257681726caf16509940ef8c6d427cd85150e)
This commit is contained in:
hondacrx
2023-09-14 04:56:05 -04:00
parent 967624c664
commit bad3e89ee6
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -5525,7 +5525,10 @@ namespace Game.Spells
if (GetSpellInfo().HasAttribute(SpellAttr2.CantCrit))
return false;
return true;
if (GetSpellInfo().HasAttribute(SpellAttr8.PeriodicCanCrit))
return true;
return false;
}
float CalcPeriodicCritChance(Unit caster)