fix(Scripts/Spells): Add checks for Relief for the Fallen script. (#23168)

This commit is contained in:
Benjamin Jackson 2025-10-10 19:07:56 -04:00 committed by GitHub
parent 9ce8bd0cc6
commit 292f1a417d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1364,6 +1364,9 @@ class spell_q12937_relief_for_the_fallen : public AuraScript
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (!GetCaster() || !GetCaster()->IsPlayer())
return;
Player* caster = GetCaster()->ToPlayer();
Unit* target = GetUnitOwner();
if (target && target->ToCreature())