Scripts/Spells: Updated lava burst script, rank 2 not needed anymore

Port From (https://github.com/TrinityCore/TrinityCore/commit/430012f4b5e559b2875b0a89474706b22fc17e8f)
This commit is contained in:
hondacrx
2023-07-18 07:46:59 -04:00
parent 783f5296d2
commit 399ab11a10
+2 -3
View File
@@ -61,7 +61,6 @@ namespace Scripts.Spells.Shaman
public const uint LavaBurst = 51505;
public const uint LavaBurstBonusDamage = 71824;
public const uint LavaBurstOverload = 77451;
public const uint LavaBurstRank2 = 231721;
public const uint LavaSurge = 77762;
public const uint LightningBolt = 188196;
public const uint LightningBoltEnergize = 214815;
@@ -906,7 +905,7 @@ namespace Scripts.Spells.Shaman
{
public override bool Validate(SpellInfo spellInfo)
{
return ValidateSpellInfo(SpellIds.LavaBurstRank2, SpellIds.FlameShock);
return ValidateSpellInfo(SpellIds.FlameShock);
}
void CalcCritChance(Unit victim, ref float chance)
@@ -916,7 +915,7 @@ namespace Scripts.Spells.Shaman
if (caster == null || victim == null)
return;
if (caster.HasAura(SpellIds.LavaBurstRank2) && victim.HasAura(SpellIds.FlameShock, caster.GetGUID()))
if (victim.HasAura(SpellIds.FlameShock, caster.GetGUID()))
if (victim.GetTotalAuraModifier(AuraType.ModAttackerSpellAndWeaponCritChance) > -100)
chance = 100.0f;
}