проверь этот:
/script if(GetBattlefieldInstanceExpiration() > 0) LeaveBattlefield()
но не уверен