beginscript; SetVar(0,0); label Wait: if (GetState() != 0 && UnitDead() != 1 && GetVar(0) == 0) { ExcTargetType(0x2); IncTargetType(0x40); IncTargetType(0x1); IncludeUTarget(targetdude); EndFrame(); goto End; } else if (GetState() != 0 && UnitDead() != 1) { ExcTargetType(0x2); IncTargetType(0x40); IncTargetType(0x1); IncludeGTarget(3); EndFrame(); goto End; } EndFrame(); goto Wait; label End: if (UnitDead()) { IncVar(0); EndFrame(); goto Wait; } EndFrame(); goto End; endscript; $