fix(Scripts/Spells): Seal of Command cannot be casted on dead targets (#6186)
- Closes #5517 - Closes https://github.com/chromiecraft/chromiecraft/issues/476
This commit is contained in:
parent
7106e66421
commit
a61bdc7b3d
1 changed files with 7 additions and 1 deletions
|
|
@ -103,7 +103,13 @@ public:
|
|||
if (procSpell->IsAffectingArea())
|
||||
targets = 1;
|
||||
|
||||
eventInfo.GetActor()->CastCustomSpell(aurEff->GetSpellInfo()->Effects[EFFECT_0].TriggerSpell, SPELLVALUE_MAX_TARGETS, targets, eventInfo.GetActionTarget(), false, nullptr, aurEff);
|
||||
if (Unit* target = eventInfo.GetActionTarget())
|
||||
{
|
||||
if (target->IsAlive())
|
||||
{
|
||||
eventInfo.GetActor()->CastCustomSpell(aurEff->GetSpellInfo()->Effects[EFFECT_0].TriggerSpell, SPELLVALUE_MAX_TARGETS, targets, target, false, nullptr, aurEff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue