mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Scripts/Gilneas: Remove unneccessary null check from 47df5bdc22
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user