Scripts/Gilneas: Remove unneccessary null check from 47df5bdc22

This commit is contained in:
Shauren
2025-10-03 10:23:52 +02:00
parent 16edee0b0e
commit da03588f1c

View File

@@ -154,8 +154,7 @@ class spell_gilneas_knocking : public SpellScript
void HandleEffect()
{
if (SpellInfo const* spellInfo = GetSpellInfo())
GetCaster()->CastSpell(GetCaster(), spellInfo->GetEffect(RAND(EFFECT_1, EFFECT_2)).CalcValue(), true);
GetCaster()->CastSpell(GetCaster(), GetEffectInfo(RAND(EFFECT_1, EFFECT_2)).CalcValue(), true);
}
void Register() override