mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Scripts/TheEye): Fix crash in Kaelthas. (#18653)
* fix(Scripts/TheEye): Fix crash in Kaelthas. * Remove whitespace
This commit is contained in:
committed by
GitHub
parent
7180065dd3
commit
28a64111fd
@@ -498,8 +498,12 @@ struct boss_kaelthas : public BossAI
|
|||||||
{
|
{
|
||||||
summons.DespawnEntry(NPC_NETHER_VAPOR);
|
summons.DespawnEntry(NPC_NETHER_VAPOR);
|
||||||
scheduler.CancelGroup(GROUP_NETHER_BEAM);
|
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->SetTarget();
|
||||||
me->GetMotionMaster()->Clear();
|
me->GetMotionMaster()->Clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user