public static int IsGroupDie(IntPtr l)
    {
        int result;

        try
        {
            BattleTeam battleTeam = (BattleTeam)LuaObject.checkSelf(l);
            int        groupId;
            LuaObject.checkType(l, 2, out groupId);
            bool b = battleTeam.IsGroupDie(groupId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }