beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { ExcTargetType(0x2); IncTargetType(0x40); IncTargetType(0x1); if (GetGlobalVar(0) == 2) IncludeGTarget(3); if (GetGlobalVar(0) >= 3) IncludeGTarget(4); EndFrame(); goto End; } EndFrame(); goto Wait; label End: if (UnitDead()) { EndFrame(); goto Wait; } EndFrame(); goto End; endscript; $