fix(Scripts/AQ40): prevent Master's Eye respawn crash in OnCreatureCreate (#25460)

Co-authored-by: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Andrew
2026-04-13 20:45:11 -03:00
committed by GitHub
co-authored by Claude Opus 4.6
parent dde37ba4d9
commit db2e1325d2
@@ -81,7 +81,7 @@ public:
creature->Respawn();
break;
case NPC_MASTERS_EYE:
if (GetBossState(DATA_TWIN_EMPERORS) != DONE)
if (GetBossState(DATA_TWIN_EMPERORS) != DONE && !creature->IsAlive())
creature->Respawn(true);
break;
case NPC_CTHUN: