Scripts/Spells: Move shaman Lava Burst crit chance calculation to scripts and add Lava Burst Overload

Port From (https://github.com/TrinityCore/TrinityCore/commit/1696d738608fa8ed30321b5b4050d5516b5765f6)
This commit is contained in:
hondacrx
2022-03-04 17:38:54 -05:00
parent edafd0a270
commit 8c6e487e5a
2 changed files with 27 additions and 10 deletions
-10
View File
@@ -684,16 +684,6 @@ namespace Game.Entities
if (caster.FindCurrentSpellBySpellId(5938) != null)
crit_chance = 0.0f;
break;
case SpellFamilyNames.Shaman:
// Lava Burst
if (spellInfo.SpellFamilyFlags[1].HasAnyFlag(0x00001000u))
{
if (GetAuraEffect(AuraType.PeriodicDamage, SpellFamilyNames.Shaman, new FlagArray128(0x10000000, 0, 0), caster.GetGUID()) != null)
if (GetTotalAuraModifier(AuraType.ModAttackerSpellAndWeaponCritChance) > -100)
return 100.0f;
break;
}
break;
}
// Spell crit suppression