fix(Scripts/TheEye): Fix crash in Kaelthas. (#18653)
* fix(Scripts/TheEye): Fix crash in Kaelthas. * Remove whitespace
This commit is contained in:
parent
7180065dd3
commit
28a64111fd
1 changed files with 6 additions and 2 deletions
|
|
@ -498,8 +498,12 @@ struct boss_kaelthas : public BossAI
|
|||
{
|
||||
summons.DespawnEntry(NPC_NETHER_VAPOR);
|
||||
scheduler.CancelGroup(GROUP_NETHER_BEAM);
|
||||
me->SetTarget(me->GetVictim()->GetGUID());
|
||||
me->GetMotionMaster()->MoveChase(me->GetVictim());
|
||||
|
||||
if (Unit* victim = me->GetVictim())
|
||||
{
|
||||
me->SetTarget(victim->GetGUID());
|
||||
me->GetMotionMaster()->MoveChase(victim);
|
||||
}
|
||||
});
|
||||
me->SetTarget();
|
||||
me->GetMotionMaster()->Clear();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue