Scripts/Firelands: removed a duplicate cast for Magma Trap Vulnerability as the heroic versions of Magma Trap Eruption take care of things already

This commit is contained in:
Ovahlord committed 2023-06-12 11:31:22 +02:00
1 parent e87c7ae513
commit ebee887d61
1 file changed
+2 -6
@@ -79,8 +79,7 @@ enum Spells
// Magma Trap
SPELL_MAGMA_TRAP_VISUAL = 98179,
SPELL_MAGMA_TRAP_PERIODIC_AURA = 98172,
SPELL_MAGMA_TRAP_VULNERABILITY = 100238,
SPELL_MAGMA_TRAP_ERUPTION = 100107,
SPELL_MAGMA_TRAP_ERUPTION = 98175,
// Sulfuras Smash
SPELL_LAVA_WAVE_N = 98874,
@@ -1519,7 +1518,7 @@ class spell_ragnaros_magma_trap_periodic : public SpellScript
{
bool Validate(SpellInfo const* /*spellInfo*/) override
{
return ValidateSpellInfo({ SPELL_MAGMA_TRAP_ERUPTION, SPELL_MAGMA_TRAP_VULNERABILITY });
return ValidateSpellInfo({ SPELL_MAGMA_TRAP_ERUPTION });
}
void FilterTargets(std::list<WorldObject*>& targets)
@@ -1538,9 +1537,6 @@ class spell_ragnaros_magma_trap_periodic : public SpellScript
caster->CastSpell(nullptr, SPELL_MAGMA_TRAP_ERUPTION);
if (caster->GetMap()->IsHeroic())
caster->CastSpell(nullptr, SPELL_MAGMA_TRAP_VULNERABILITY);
caster->RemoveAllAuras();
if (caster->IsCreature())