mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 02:50:29 +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);
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user