mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 20:44:17 +08:00
fix(Scripts/Spells): Add checks for Relief for the Fallen script. (#23168)
This commit is contained in:
parent
9ce8bd0cc6
commit
292f1a417d
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user