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

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-04-13 20:45:11 -03:00
committed by GitHub
parent dde37ba4d9
commit db2e1325d2

View File

@@ -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: