游戏王残局简化版

Annotation For script/def.txt
Login

Annotation For script/def.txt

Origin for each line in script/def.txt from check-in 239fb915e6:

239fb915e6 2023-10-19    1: ---@meta
239fb915e6 2023-10-19    2: 
239fb915e6 2023-10-19    3: ---@class Card
239fb915e6 2023-10-19    4: Card = {}
239fb915e6 2023-10-19    5: 
239fb915e6 2023-10-19    6: ---@class Duel
239fb915e6 2023-10-19    7: Duel = {}
239fb915e6 2023-10-19    8: 
239fb915e6 2023-10-19    9: ---@class Effect
239fb915e6 2023-10-19   10: Effect = {}
239fb915e6 2023-10-19   11: 
239fb915e6 2023-10-19   12: ---@class Group
239fb915e6 2023-10-19   13: Group = {}
239fb915e6 2023-10-19   14: 
239fb915e6 2023-10-19   15: ---@class Debug
239fb915e6 2023-10-19   16: Debug = {}
239fb915e6 2023-10-19   17: 
239fb915e6 2023-10-19   18: -----
239fb915e6 2023-10-19   19: 
239fb915e6 2023-10-19   20: ---返回c的当前卡号(可能因为效果改变)
239fb915e6 2023-10-19   21: ---@return integer
239fb915e6 2023-10-19   22: ---@return integer|nil
239fb915e6 2023-10-19   23: ---@param c Card
239fb915e6 2023-10-19   24: function Card.GetCode(c) end
239fb915e6 2023-10-19   25: 
239fb915e6 2023-10-19   26: ---返回c的卡片记载的卡号
239fb915e6 2023-10-19   27: ---@return integer
239fb915e6 2023-10-19   28: ---@param c Card
239fb915e6 2023-10-19   29: function Card.GetOriginalCode(c) end
239fb915e6 2023-10-19   30: 
239fb915e6 2023-10-19   31: ---返回c规则上的卡号(这张卡规则上当作...使用)
239fb915e6 2023-10-19   32: ---@return integer
239fb915e6 2023-10-19   33: ---@return integer
239fb915e6 2023-10-19   34: ---@param c Card
239fb915e6 2023-10-19   35: function Card.GetOriginalCodeRule(c) end
239fb915e6 2023-10-19   36: 
239fb915e6 2023-10-19   37: ---返回c作为融合素材时的卡号(包括c原本的卡号)
239fb915e6 2023-10-19   38: ---@return integer
239fb915e6 2023-10-19   39: ---@return integer|nil
239fb915e6 2023-10-19   40: ---@return ...|nil
239fb915e6 2023-10-19   41: ---@param c Card
239fb915e6 2023-10-19   42: function Card.GetFusionCode(c) end
239fb915e6 2023-10-19   43: 
239fb915e6 2023-10-19   44: ---返回c作为link素材的卡号(包括c原本的卡号)
239fb915e6 2023-10-19   45: ---@return integer
239fb915e6 2023-10-19   46: ---@return integer|nil
239fb915e6 2023-10-19   47: ---@return ...|nil
239fb915e6 2023-10-19   48: ---@param c Card
239fb915e6 2023-10-19   49: function Card.GetLinkCode(c) end
239fb915e6 2023-10-19   50: 
239fb915e6 2023-10-19   51: ---检查c作为融合素材时能否当作卡号为code的卡,额外参数是其他code
239fb915e6 2023-10-19   52: ---@return boolean
239fb915e6 2023-10-19   53: ---@param c Card
239fb915e6 2023-10-19   54: ---@param code integer
239fb915e6 2023-10-19   55: ---@param ...? integer
239fb915e6 2023-10-19   56: function Card.IsFusionCode(c,code,...) end
239fb915e6 2023-10-19   57: 
239fb915e6 2023-10-19   58: ---检查c作为link素材时能否当作卡号为code的卡,额外参数是其他code
239fb915e6 2023-10-19   59: ---@return boolean
239fb915e6 2023-10-19   60: ---@param c Card
239fb915e6 2023-10-19   61: ---@param code integer
239fb915e6 2023-10-19   62: ---@param ...? integer
239fb915e6 2023-10-19   63: function Card.IsLinkCode(c,code,...) end
239fb915e6 2023-10-19   64: 
239fb915e6 2023-10-19   65: ---检查c是否是卡名含有setname的卡
239fb915e6 2023-10-19   66: ---@return boolean
239fb915e6 2023-10-19   67: ---@param c Card
239fb915e6 2023-10-19   68: ---@param ... integer
239fb915e6 2023-10-19   69: function Card.IsSetCard(c,...) end
239fb915e6 2023-10-19   70: 
239fb915e6 2023-10-19   71: ---检查c是否是原本卡名含有setname的卡
239fb915e6 2023-10-19   72: ---@return boolean
239fb915e6 2023-10-19   73: ---@param c Card
239fb915e6 2023-10-19   74: ---@param ... integer
239fb915e6 2023-10-19   75: function Card.IsOriginalSetCard(c,...) end
239fb915e6 2023-10-19   76: 
239fb915e6 2023-10-19   77: ---检查c位置变化之前是否是名字含有setname的卡
239fb915e6 2023-10-19   78: ---@return boolean
239fb915e6 2023-10-19   79: ---@param c Card
239fb915e6 2023-10-19   80: ---@param ... integer
239fb915e6 2023-10-19   81: function Card.IsPreviousSetCard(c,...) end
239fb915e6 2023-10-19   82: 
239fb915e6 2023-10-19   83: ---检查c作为融合素材时能否当作名字含有setname的卡
239fb915e6 2023-10-19   84: ---@return boolean
239fb915e6 2023-10-19   85: ---@param c Card
239fb915e6 2023-10-19   86: ---@param ... integer
239fb915e6 2023-10-19   87: function Card.IsFusionSetCard(c,...) end
239fb915e6 2023-10-19   88: 
239fb915e6 2023-10-19   89: ---检查c作为link素材时能否当作名字含有setname的卡
239fb915e6 2023-10-19   90: ---@return boolean
239fb915e6 2023-10-19   91: ---@param c Card
239fb915e6 2023-10-19   92: ---@param ... integer
239fb915e6 2023-10-19   93: function Card.IsLinkSetCard(c,...) end
239fb915e6 2023-10-19   94: 
239fb915e6 2023-10-19   95: ---返回c的当前类型
239fb915e6 2023-10-19   96: ---@return integer
239fb915e6 2023-10-19   97: ---@param c Card
239fb915e6 2023-10-19   98: function Card.GetType(c) end
239fb915e6 2023-10-19   99: 
239fb915e6 2023-10-19  100: ---返回c的卡片记载的类型
239fb915e6 2023-10-19  101: ---@return integer
239fb915e6 2023-10-19  102: ---@param c Card
239fb915e6 2023-10-19  103: function Card.GetOriginalType(c) end
239fb915e6 2023-10-19  104: 
239fb915e6 2023-10-19  105: ---返回c用作融合素材时的类型(与GetType的区别在于对于魔陷区的怪兽卡,返回其原本类型)
239fb915e6 2023-10-19  106: ---@return integer
239fb915e6 2023-10-19  107: ---@param c Card
239fb915e6 2023-10-19  108: function Card.GetFusionType(c) end
239fb915e6 2023-10-19  109: 
239fb915e6 2023-10-19  110: ---返回c用作同调素材时的类型(与GetType的区别在于对于魔陷区的怪兽卡,返回其原本类型)
239fb915e6 2023-10-19  111: ---@return integer
239fb915e6 2023-10-19  112: ---@param c Card
239fb915e6 2023-10-19  113: function Card.GetSynchroType(c) end
239fb915e6 2023-10-19  114: 
239fb915e6 2023-10-19  115: ---返回c用作同调素材时的类型(与GetType的区别在于对于魔陷区的怪兽卡,返回其原本类型)
239fb915e6 2023-10-19  116: ---@return integer
239fb915e6 2023-10-19  117: ---@param c Card
239fb915e6 2023-10-19  118: function Card.GetXyzType(c) end
239fb915e6 2023-10-19  119: 
239fb915e6 2023-10-19  120: ---返回c用作link素材时的类型(与GetType的区别在于对于魔陷区的怪兽卡,返回其原本类型)
239fb915e6 2023-10-19  121: ---@return integer
239fb915e6 2023-10-19  122: ---@param c Card
239fb915e6 2023-10-19  123: function Card.GetLinkType(c) end
239fb915e6 2023-10-19  124: 
239fb915e6 2023-10-19  125: ---返回c的当前等级
239fb915e6 2023-10-19  126: ---@return integer
239fb915e6 2023-10-19  127: ---@param c Card
239fb915e6 2023-10-19  128: function Card.GetLevel(c) end
239fb915e6 2023-10-19  129: 
239fb915e6 2023-10-19  130: ---返回c的当前阶级
239fb915e6 2023-10-19  131: ---@return integer
239fb915e6 2023-10-19  132: ---@param c Card
239fb915e6 2023-10-19  133: function Card.GetRank(c) end
239fb915e6 2023-10-19  134: 
239fb915e6 2023-10-19  135: ---返回c的连接标记数量
239fb915e6 2023-10-19  136: ---@return integer
239fb915e6 2023-10-19  137: ---@param c Card
239fb915e6 2023-10-19  138: function Card.GetLink(c) end
239fb915e6 2023-10-19  139: 
239fb915e6 2023-10-19  140: ---返回c的对于同调怪兽sc的同调用等级
239fb915e6 2023-10-19  141: ---此函数除了某些特定卡如调节支援士,返回值与Card.GetLevel(c)相同
239fb915e6 2023-10-19  142: ---@return integer
239fb915e6 2023-10-19  143: ---@param c Card
239fb915e6 2023-10-19  144: ---@param sc Card
239fb915e6 2023-10-19  145: function Card.GetSynchroLevel(c,sc) end
239fb915e6 2023-10-19  146: 
239fb915e6 2023-10-19  147: ---返回c的对于仪式怪兽rc仪式解放等级
239fb915e6 2023-10-19  148: ---此函数除了某些特定卡如仪式供物,返回值与Card.GetLevel(c)相同
239fb915e6 2023-10-19  149: ---@return integer
239fb915e6 2023-10-19  150: ---@param c Card
239fb915e6 2023-10-19  151: ---@param rc Card
239fb915e6 2023-10-19  152: function Card.GetRitualLevel(c,rc) end
239fb915e6 2023-10-19  153: 
239fb915e6 2023-10-19  154: ---返回c的卡片记载的等级
239fb915e6 2023-10-19  155: ---@return integer
239fb915e6 2023-10-19  156: ---@param c Card
239fb915e6 2023-10-19  157: function Card.GetOriginalLevel(c) end
239fb915e6 2023-10-19  158: 
239fb915e6 2023-10-19  159: ---返回c的卡片记载的阶级
239fb915e6 2023-10-19  160: ---@return integer
239fb915e6 2023-10-19  161: ---@param c Card
239fb915e6 2023-10-19  162: function Card.GetOriginalRank(c) end
239fb915e6 2023-10-19  163: 
239fb915e6 2023-10-19  164: ---检查c对于XYZ怪兽xyzc的XYZ用等级是否是lv
239fb915e6 2023-10-19  165: ---@return boolean
239fb915e6 2023-10-19  166: ---@param c Card
239fb915e6 2023-10-19  167: ---@param xyzc Card
239fb915e6 2023-10-19  168: ---@param lv integer
239fb915e6 2023-10-19  169: function Card.IsXyzLevel(c,xyzc,lv) end
239fb915e6 2023-10-19  170: 
239fb915e6 2023-10-19  171: ---返回c的左灵摆刻度
239fb915e6 2023-10-19  172: ---@return integer
239fb915e6 2023-10-19  173: ---@param c Card
239fb915e6 2023-10-19  174: function Card.GetLeftScale(c) end
239fb915e6 2023-10-19  175: 
239fb915e6 2023-10-19  176: ---返回c的原本的左灵摆刻度
239fb915e6 2023-10-19  177: ---@return integer
239fb915e6 2023-10-19  178: ---@param c Card
239fb915e6 2023-10-19  179: function Card.GetOriginalLeftScale(c) end
239fb915e6 2023-10-19  180: 
239fb915e6 2023-10-19  181: ---返回c的右灵摆刻度
239fb915e6 2023-10-19  182: ---@return integer
239fb915e6 2023-10-19  183: ---@param c Card
239fb915e6 2023-10-19  184: function Card.GetRightScale(c) end
239fb915e6 2023-10-19  185: 
239fb915e6 2023-10-19  186: ---返回c的原本的右灵摆刻度
239fb915e6 2023-10-19  187: ---@return integer
239fb915e6 2023-10-19  188: ---@param c Card
239fb915e6 2023-10-19  189: function Card.GetOriginalRightScale(c) end
239fb915e6 2023-10-19  190: 
239fb915e6 2023-10-19  191: ---返回c的当前灵摆刻度。如果在左灵摆区域则返回左刻度,在右灵摆区域或是不在灵摆区域则返回右刻度
239fb915e6 2023-10-19  192: ---@return integer
239fb915e6 2023-10-19  193: ---@param c Card
239fb915e6 2023-10-19  194: function Card.GetCurrentScale(c) end
239fb915e6 2023-10-19  195: 
239fb915e6 2023-10-19  196: ---检查c是否是连接标记为 dir 的卡
239fb915e6 2023-10-19  197: ---@return boolean
239fb915e6 2023-10-19  198: ---@param c Card
239fb915e6 2023-10-19  199: ---@param dir integer
239fb915e6 2023-10-19  200: function Card.IsLinkMarker(c,dir) end
239fb915e6 2023-10-19  201: 
239fb915e6 2023-10-19  202: ---返回c所连接区的卡片组
239fb915e6 2023-10-19  203: ---@return Group
239fb915e6 2023-10-19  204: ---@param c Card
239fb915e6 2023-10-19  205: function Card.GetLinkedGroup(c) end
239fb915e6 2023-10-19  206: 
239fb915e6 2023-10-19  207: ---返回c所连接区的怪兽卡数量
239fb915e6 2023-10-19  208: ---@return integer
239fb915e6 2023-10-19  209: ---@param c Card
239fb915e6 2023-10-19  210: function Card.GetLinkedGroupCount(c) end
239fb915e6 2023-10-19  211: 
239fb915e6 2023-10-19  212: ---返回c的[以 player 来看的场上的]连接区域
239fb915e6 2023-10-19  213: ---@return integer
239fb915e6 2023-10-19  214: ---@param c Card
239fb915e6 2023-10-19  215: ---@param player? integer default: c:GetControler()
239fb915e6 2023-10-19  216: function Card.GetLinkedZone(c,player) end
239fb915e6 2023-10-19  217: 
239fb915e6 2023-10-19  218: ---返回和c互相连接状态的卡片组
239fb915e6 2023-10-19  219: ---@return Group
239fb915e6 2023-10-19  220: ---@param c Card
239fb915e6 2023-10-19  221: function Card.GetMutualLinkedGroup(c) end
239fb915e6 2023-10-19  222: 
239fb915e6 2023-10-19  223: ---返回和c互相连接状态的卡片组的数量
239fb915e6 2023-10-19  224: ---@return integer
239fb915e6 2023-10-19  225: ---@param c Card
239fb915e6 2023-10-19  226: function Card.GetMutualLinkedGroupCount(c) end
239fb915e6 2023-10-19  227: 
239fb915e6 2023-10-19  228: ---返回[以 player 来看的]与卡片 c 互相连接的卡 所在的区域
239fb915e6 2023-10-19  229: ---@return integer
239fb915e6 2023-10-19  230: ---@param c Card
239fb915e6 2023-10-19  231: ---@param player? integer default: c:GetControler()
239fb915e6 2023-10-19  232: function Card.GetMutualLinkedZone(c,player) end
239fb915e6 2023-10-19  233: 
239fb915e6 2023-10-19  234: ---检查c是否是连接状态
239fb915e6 2023-10-19  235: ---@return boolean
239fb915e6 2023-10-19  236: ---@param c Card
239fb915e6 2023-10-19  237: function Card.IsLinkState(c) end
239fb915e6 2023-10-19  238: 
239fb915e6 2023-10-19  239: ---检查c是否是额外连接状态
239fb915e6 2023-10-19  240: ---@return boolean
239fb915e6 2023-10-19  241: ---@param c Card
239fb915e6 2023-10-19  242: function Card.IsExtraLinkState(c) end
239fb915e6 2023-10-19  243: 
239fb915e6 2023-10-19  244: ---返回与c同一纵列的c以外的卡片组,后2个参数会计算卡片c左边 left 列 和右边 right 列的所有卡,
239fb915e6 2023-10-19  245: ---比如c在中间的格子,那么 c:GetColumnGroup(2,2) 就相当于获取了除场地魔法以外的 场上的所有卡
239fb915e6 2023-10-19  246: ---@return Group
239fb915e6 2023-10-19  247: ---@param c Card
239fb915e6 2023-10-19  248: ---@param left? integer default: 0
239fb915e6 2023-10-19  249: ---@param right? integer default: 0
239fb915e6 2023-10-19  250: function Card.GetColumnGroup(c,left,right) end
239fb915e6 2023-10-19  251: 
239fb915e6 2023-10-19  252: ---用法同上,只是返回的是卡片的数量
239fb915e6 2023-10-19  253: ---@return integer
239fb915e6 2023-10-19  254: ---@param c Card
239fb915e6 2023-10-19  255: ---@param left? integer default: 0
239fb915e6 2023-10-19  256: ---@param right? integer default: 0
239fb915e6 2023-10-19  257: function Card.GetColumnGroupCount(c,left,right) end
239fb915e6 2023-10-19  258: 
239fb915e6 2023-10-19  259: ---返回[以 player 来看的] location 范围内与 c 同一纵列[包含左边 left 列和右边 right 列]的区域,
239fb915e6 2023-10-19  260: ---location 的值是 LOCATION_MZONE,LOCATION_SZONE,LOCATIOIN_ONFIELD
239fb915e6 2023-10-19  261: ---@return integer
239fb915e6 2023-10-19  262: ---@param c Card
239fb915e6 2023-10-19  263: ---@param location integer
239fb915e6 2023-10-19  264: ---@param left? integer
239fb915e6 2023-10-19  265: ---@param right? integer
239fb915e6 2023-10-19  266: ---@param player? integer
239fb915e6 2023-10-19  267: function Card.GetColumnZone(c,location,left,right,player) end
239fb915e6 2023-10-19  268: 
239fb915e6 2023-10-19  269: ---检查与c同一纵列的区域是否全都有卡
239fb915e6 2023-10-19  270: ---@return boolean
239fb915e6 2023-10-19  271: ---@param c Card
239fb915e6 2023-10-19  272: function Card.IsAllColumn(c) end
239fb915e6 2023-10-19  273: 
239fb915e6 2023-10-19  274: ---返回c的当前属性
239fb915e6 2023-10-19  275: ---注:对某些多属性怪兽如光与暗之龙,此函数的返回值可能是几个属性的组合值
239fb915e6 2023-10-19  276: ---@return integer
239fb915e6 2023-10-19  277: ---@param c Card
239fb915e6 2023-10-19  278: function Card.GetAttribute(c) end
239fb915e6 2023-10-19  279: 
239fb915e6 2023-10-19  280: ---返回c的卡片记载的属性
239fb915e6 2023-10-19  281: ---@return integer
239fb915e6 2023-10-19  282: ---@param c Card
239fb915e6 2023-10-19  283: function Card.GetOriginalAttribute(c) end
239fb915e6 2023-10-19  284: 
239fb915e6 2023-10-19  285: ---返回c[由player融合召唤时]用作融合素材时的属性
239fb915e6 2023-10-19  286: ---@return integer
239fb915e6 2023-10-19  287: ---@param c Card
239fb915e6 2023-10-19  288: ---@param player? integer
239fb915e6 2023-10-19  289: function Card.GetFusionAttribute(c,player) end
239fb915e6 2023-10-19  290: 
239fb915e6 2023-10-19  291: ---返回c[由player连接召唤时]用作连接素材时的属性
239fb915e6 2023-10-19  292: ---@return integer
239fb915e6 2023-10-19  293: ---@param c Card
239fb915e6 2023-10-19  294: ---@param player? integer
239fb915e6 2023-10-19  295: function Card.GetLinkAttribute(c,player) end
239fb915e6 2023-10-19  296: 
239fb915e6 2023-10-19  297: ---检查c在墓地中会变成什么属性。
239fb915e6 2023-10-19  298: ---第二个参数可选,指示假设送去墓地是由于哪个玩家。
239fb915e6 2023-10-19  299: ---@return integer
239fb915e6 2023-10-19  300: ---@param c Card
239fb915e6 2023-10-19  301: ---@param reasonPlayer? integer
239fb915e6 2023-10-19  302: function Card.GetAttributeInGrave(c,reasonPlayer) end
239fb915e6 2023-10-19  303: 
239fb915e6 2023-10-19  304: ---返回c的当前种族
239fb915e6 2023-10-19  305: ---注:对某些多种族怪兽如动画效果的魔术猿,此函数的返回值可能是几个种族的组合值
239fb915e6 2023-10-19  306: ---@return integer
239fb915e6 2023-10-19  307: ---@param c Card
239fb915e6 2023-10-19  308: function Card.GetRace(c) end
239fb915e6 2023-10-19  309: 
239fb915e6 2023-10-19  310: ---返回c的卡片记载的种族
239fb915e6 2023-10-19  311: ---@return integer
239fb915e6 2023-10-19  312: ---@param c Card
239fb915e6 2023-10-19  313: function Card.GetOriginalRace(c) end
239fb915e6 2023-10-19  314: 
239fb915e6 2023-10-19  315: ---返回c[由player连接召唤时]作为连接素材时的种族
239fb915e6 2023-10-19  316: ---@return integer
239fb915e6 2023-10-19  317: ---@param c Card
239fb915e6 2023-10-19  318: ---@param player? integer
239fb915e6 2023-10-19  319: function Card.GetLinkRace(c,player) end
239fb915e6 2023-10-19  320: 
239fb915e6 2023-10-19  321: ---检查c在墓地中会变成什么种族。
239fb915e6 2023-10-19  322: ---第二个参数可选,指示假设送去墓地是由于哪个玩家。
239fb915e6 2023-10-19  323: ---@return integer
239fb915e6 2023-10-19  324: ---@param c Card
239fb915e6 2023-10-19  325: ---@param reasonPlayer? integer
239fb915e6 2023-10-19  326: function Card.GetRaceInGrave(c,reasonPlayer) end
239fb915e6 2023-10-19  327: 
239fb915e6 2023-10-19  328: ---返回c的当前攻击力
239fb915e6 2023-10-19  329: ---@return integer
239fb915e6 2023-10-19  330: ---@param c Card
239fb915e6 2023-10-19  331: function Card.GetAttack(c) end
239fb915e6 2023-10-19  332: 
239fb915e6 2023-10-19  333: ---返回c的原本攻击力
239fb915e6 2023-10-19  334: ---@return integer
239fb915e6 2023-10-19  335: ---@param c Card
239fb915e6 2023-10-19  336: function Card.GetBaseAttack(c) end
239fb915e6 2023-10-19  337: 
239fb915e6 2023-10-19  338: ---返回c的卡片记载的攻击力,返回值是负数表示是"?"
239fb915e6 2023-10-19  339: ---@return integer
239fb915e6 2023-10-19  340: ---@param c Card
239fb915e6 2023-10-19  341: function Card.GetTextAttack(c) end
239fb915e6 2023-10-19  342: 
239fb915e6 2023-10-19  343: ---返回c的当前守备力
239fb915e6 2023-10-19  344: ---@return integer
239fb915e6 2023-10-19  345: ---@param c Card
239fb915e6 2023-10-19  346: function Card.GetDefense(c) end
239fb915e6 2023-10-19  347: 
239fb915e6 2023-10-19  348: ---返回c的原本守备力
239fb915e6 2023-10-19  349: ---@return integer
239fb915e6 2023-10-19  350: ---@param c Card
239fb915e6 2023-10-19  351: function Card.GetBaseDefense(c) end
239fb915e6 2023-10-19  352: 
239fb915e6 2023-10-19  353: ---返回c的卡片记载的守备力,返回值是负数表示是"?"
239fb915e6 2023-10-19  354: ---@return integer
239fb915e6 2023-10-19  355: ---@param c Card
239fb915e6 2023-10-19  356: function Card.GetTextDefense(c) end
239fb915e6 2023-10-19  357: 
239fb915e6 2023-10-19  358: ---返回c位置变化之前在场上的卡号
239fb915e6 2023-10-19  359: ---@return integer
239fb915e6 2023-10-19  360: ---@return integer|nil
239fb915e6 2023-10-19  361: ---@param c Card
239fb915e6 2023-10-19  362: function Card.GetPreviousCodeOnField(c) end
239fb915e6 2023-10-19  363: 
239fb915e6 2023-10-19  364: ---返回c位置变化之前在场上的类型
239fb915e6 2023-10-19  365: ---@return integer
239fb915e6 2023-10-19  366: ---@param c Card
239fb915e6 2023-10-19  367: function Card.GetPreviousTypeOnField(c) end
239fb915e6 2023-10-19  368: 
239fb915e6 2023-10-19  369: ---返回c位置变化之前在场上的等级
239fb915e6 2023-10-19  370: ---@return integer
239fb915e6 2023-10-19  371: ---@param c Card
239fb915e6 2023-10-19  372: function Card.GetPreviousLevelOnField(c) end
239fb915e6 2023-10-19  373: 
239fb915e6 2023-10-19  374: ---返回c位置变化之前在场上的阶级
239fb915e6 2023-10-19  375: ---@return integer
239fb915e6 2023-10-19  376: ---@param c Card
239fb915e6 2023-10-19  377: function Card.GetPreviousRankOnField(c) end
239fb915e6 2023-10-19  378: 
239fb915e6 2023-10-19  379: ---返回c位置变化之前在场上的属性
239fb915e6 2023-10-19  380: ---@return integer
239fb915e6 2023-10-19  381: ---@param c Card
239fb915e6 2023-10-19  382: function Card.GetPreviousAttributeOnField(c) end
239fb915e6 2023-10-19  383: 
239fb915e6 2023-10-19  384: ---返回c位置变化之前在场上的种族
239fb915e6 2023-10-19  385: ---@return integer
239fb915e6 2023-10-19  386: ---@param c Card
239fb915e6 2023-10-19  387: function Card.GetPreviousRaceOnField(c) end
239fb915e6 2023-10-19  388: 
239fb915e6 2023-10-19  389: ---返回c位置变化之前在场上的攻击力
239fb915e6 2023-10-19  390: ---@return integer
239fb915e6 2023-10-19  391: ---@param c Card
239fb915e6 2023-10-19  392: function Card.GetPreviousAttackOnField(c) end
239fb915e6 2023-10-19  393: 
239fb915e6 2023-10-19  394: ---返回c位置变化之前在场上的守备力
239fb915e6 2023-10-19  395: ---@return integer
239fb915e6 2023-10-19  396: ---@param c Card
239fb915e6 2023-10-19  397: function Card.GetPreviousDefenseOnField(c) end
239fb915e6 2023-10-19  398: 
239fb915e6 2023-10-19  399: ---返回c的持有者
239fb915e6 2023-10-19  400: ---@return integer
239fb915e6 2023-10-19  401: ---@param c Card
239fb915e6 2023-10-19  402: function Card.GetOwner(c) end
239fb915e6 2023-10-19  403: 
239fb915e6 2023-10-19  404: ---返回c的当前控制者
239fb915e6 2023-10-19  405: ---@return integer
239fb915e6 2023-10-19  406: ---@param c Card
239fb915e6 2023-10-19  407: function Card.GetControler(c) end
239fb915e6 2023-10-19  408: 
239fb915e6 2023-10-19  409: ---返回c的位置变化之前的控制者
239fb915e6 2023-10-19  410: ---@return integer
239fb915e6 2023-10-19  411: ---@param c Card
239fb915e6 2023-10-19  412: function Card.GetPreviousControler(c) end
239fb915e6 2023-10-19  413: 
239fb915e6 2023-10-19  414: ---设置c来到当前位置的原因为reason
239fb915e6 2023-10-19  415: ---@return boolean
239fb915e6 2023-10-19  416: ---@param c Card
239fb915e6 2023-10-19  417: ---@param reason integer
239fb915e6 2023-10-19  418: function Card.SetReason(c,reason) end
239fb915e6 2023-10-19  419: 
239fb915e6 2023-10-19  420: ---返回c的位置变化原因
239fb915e6 2023-10-19  421: ---@return integer
239fb915e6 2023-10-19  422: ---@param c Card
239fb915e6 2023-10-19  423: function Card.GetReason(c) end
239fb915e6 2023-10-19  424: 
239fb915e6 2023-10-19  425: ---返回导致c的位置变化的卡
239fb915e6 2023-10-19  426: ---此函数仅在某卡被战斗破坏时,因为上级召唤被解放,或者成为特殊召唤使用的素材时有效
239fb915e6 2023-10-19  427: ---@return Card
239fb915e6 2023-10-19  428: ---@param c Card
239fb915e6 2023-10-19  429: function Card.GetReasonCard(c) end
239fb915e6 2023-10-19  430: 
239fb915e6 2023-10-19  431: ---返回导致c的位置变化的玩家
239fb915e6 2023-10-19  432: ---@return integer
239fb915e6 2023-10-19  433: ---@param c Card
239fb915e6 2023-10-19  434: function Card.GetReasonPlayer(c) end
239fb915e6 2023-10-19  435: 
239fb915e6 2023-10-19  436: ---返回导致c的位置变化的效果
239fb915e6 2023-10-19  437: ---@return Effect
239fb915e6 2023-10-19  438: ---@param c Card
239fb915e6 2023-10-19  439: function Card.GetReasonEffect(c) end
239fb915e6 2023-10-19  440: 
239fb915e6 2023-10-19  441: ---返回c当前的表示形式
239fb915e6 2023-10-19  442: ---@return integer
239fb915e6 2023-10-19  443: ---@param c Card
239fb915e6 2023-10-19  444: function Card.GetPosition(c) end
239fb915e6 2023-10-19  445: 
239fb915e6 2023-10-19  446: ---返回c位置变化前的表示形式
239fb915e6 2023-10-19  447: ---@return integer
239fb915e6 2023-10-19  448: ---@param c Card
239fb915e6 2023-10-19  449: function Card.GetPreviousPosition(c) end
239fb915e6 2023-10-19  450: 
239fb915e6 2023-10-19  451: ---返回c在本次战斗发生之前的表示形式
239fb915e6 2023-10-19  452: ---@return integer
239fb915e6 2023-10-19  453: ---@param c Card
239fb915e6 2023-10-19  454: function Card.GetBattlePosition(c) end
239fb915e6 2023-10-19  455: 
239fb915e6 2023-10-19  456: ---返回c当前的所在位置
239fb915e6 2023-10-19  457: ---@return integer
239fb915e6 2023-10-19  458: ---@param c Card
239fb915e6 2023-10-19  459: function Card.GetLocation(c) end
239fb915e6 2023-10-19  460: 
239fb915e6 2023-10-19  461: ---返回c位置变化前的所在的位置
239fb915e6 2023-10-19  462: ---@return integer
239fb915e6 2023-10-19  463: ---@param c Card
239fb915e6 2023-10-19  464: function Card.GetPreviousLocation(c) end
239fb915e6 2023-10-19  465: 
239fb915e6 2023-10-19  466: ---返回c在当前位置的序号
239fb915e6 2023-10-19  467: ---在场上时,序号代表所在的格子,从左往右分别是0-4,场地魔法格的序号为5,左右灵摆区域为6-7
239fb915e6 2023-10-19  468: ---在其它地方时,序号表示的是第几张卡,最下面的卡的序号为0
239fb915e6 2023-10-19  469: ---@return integer
239fb915e6 2023-10-19  470: ---@param c Card
239fb915e6 2023-10-19  471: function Card.GetSequence(c) end
239fb915e6 2023-10-19  472: 
239fb915e6 2023-10-19  473: ---返回c位置变化前的序号
239fb915e6 2023-10-19  474: ---@return integer
239fb915e6 2023-10-19  475: ---@param c Card
239fb915e6 2023-10-19  476: function Card.GetPreviousSequence(c) end
239fb915e6 2023-10-19  477: 
239fb915e6 2023-10-19  478: ---返回c的召唤/特殊召唤的方式
239fb915e6 2023-10-19  479: ---@return integer
239fb915e6 2023-10-19  480: ---@param c Card
239fb915e6 2023-10-19  481: function Card.GetSummonType(c) end
239fb915e6 2023-10-19  482: 
239fb915e6 2023-10-19  483: ---返回c的召唤/特殊召唤的位置
239fb915e6 2023-10-19  484: ---@return integer
239fb915e6 2023-10-19  485: ---@param c Card
239fb915e6 2023-10-19  486: function Card.GetSummonLocation(c) end
239fb915e6 2023-10-19  487: 
239fb915e6 2023-10-19  488: ---返回召唤/特殊召唤 c 上场的玩家
239fb915e6 2023-10-19  489: ---@return integer
239fb915e6 2023-10-19  490: ---@param c Card
239fb915e6 2023-10-19  491: function Card.GetSummonPlayer(c) end
239fb915e6 2023-10-19  492: 
239fb915e6 2023-10-19  493: ---返回c位置变化的目的地
239fb915e6 2023-10-19  494: ---此函数仅在处理位置转移代替效果时有效
239fb915e6 2023-10-19  495: ---@return integer
239fb915e6 2023-10-19  496: ---@param c Card
239fb915e6 2023-10-19  497: function Card.GetDestination(c) end
239fb915e6 2023-10-19  498: 
239fb915e6 2023-10-19  499: ---返回c离场时因改变去向的效果(如大宇宙)的目的地
239fb915e6 2023-10-19  500: ---@return integer
239fb915e6 2023-10-19  501: ---@param c Card
239fb915e6 2023-10-19  502: function Card.GetLeaveFieldDest(c) end
239fb915e6 2023-10-19  503: 
239fb915e6 2023-10-19  504: ---返回c转移到当前位置的回合
239fb915e6 2023-10-19  505: ---@return integer
239fb915e6 2023-10-19  506: ---@param c Card
239fb915e6 2023-10-19  507: function Card.GetTurnID(c) end
239fb915e6 2023-10-19  508: 
239fb915e6 2023-10-19  509: ---返回c转移到当前位置的时间标识
239fb915e6 2023-10-19  510: ---此数值唯一,越小表示c是越早出现在那个位置
239fb915e6 2023-10-19  511: ---卡片从里侧翻开也会改变此数值
239fb915e6 2023-10-19  512: ---@return integer
239fb915e6 2023-10-19  513: ---@param c Card
239fb915e6 2023-10-19  514: function Card.GetFieldID(c) end
239fb915e6 2023-10-19  515: 
239fb915e6 2023-10-19  516: ---返回c转移到当前位置的真实的时间标识
239fb915e6 2023-10-19  517: ---卡片从里侧翻开不会改变此数值
239fb915e6 2023-10-19  518: ---@return integer
239fb915e6 2023-10-19  519: ---@param c Card
239fb915e6 2023-10-19  520: function Card.GetRealFieldID(c) end
239fb915e6 2023-10-19  521: 
239fb915e6 2023-10-19  522: ---检查c是否在规则上当做code使用
239fb915e6 2023-10-19  523: ---@return boolean
239fb915e6 2023-10-19  524: ---@param c Card
239fb915e6 2023-10-19  525: ---@param code integer
239fb915e6 2023-10-19  526: function Card.IsOriginalCodeRule(c,code) end
239fb915e6 2023-10-19  527: 
239fb915e6 2023-10-19  528: ---检查c的卡号是否是 code1[, 或者为 code2...]
239fb915e6 2023-10-19  529: ---@return boolean
239fb915e6 2023-10-19  530: ---@param c Card
239fb915e6 2023-10-19  531: ---@param code1 integer
239fb915e6 2023-10-19  532: ---@param code2? integer
239fb915e6 2023-10-19  533: ---@param ...? integer
239fb915e6 2023-10-19  534: function Card.IsCode(c,code1,code2,...) end
239fb915e6 2023-10-19  535: 
239fb915e6 2023-10-19  536: ---检查c是否属于类型type
239fb915e6 2023-10-19  537: ---@return boolean
239fb915e6 2023-10-19  538: ---@param c Card
239fb915e6 2023-10-19  539: ---@param type integer
239fb915e6 2023-10-19  540: function Card.IsType(c,type) end
239fb915e6 2023-10-19  541: 
239fb915e6 2023-10-19  542: ---检查c用作融合素材时是否属于类型type(与IsType的区别在于对于魔陷区的怪兽卡,用其原本类型作判断)
239fb915e6 2023-10-19  543: ---@return boolean
239fb915e6 2023-10-19  544: ---@param c Card
239fb915e6 2023-10-19  545: ---@param type integer
239fb915e6 2023-10-19  546: function Card.IsFusionType(c,type) end
239fb915e6 2023-10-19  547: 
239fb915e6 2023-10-19  548: ---检查c用作同调素材时是否属于类型type(与IsType的区别在于对于魔陷区的怪兽卡,用其原本类型作判断)
239fb915e6 2023-10-19  549: ---@return boolean
239fb915e6 2023-10-19  550: ---@param c Card
239fb915e6 2023-10-19  551: ---@param type integer
239fb915e6 2023-10-19  552: function Card.IsSynchroType(c,type) end
239fb915e6 2023-10-19  553: 
239fb915e6 2023-10-19  554: ---检查c用作XYZ素材时是否属于类型type(与IsType的区别在于对于魔陷区的怪兽卡,用其原本类型作判断)
239fb915e6 2023-10-19  555: ---@return boolean
239fb915e6 2023-10-19  556: ---@param c Card
239fb915e6 2023-10-19  557: ---@param type integer
239fb915e6 2023-10-19  558: function Card.IsXyzType(c,type) end
239fb915e6 2023-10-19  559: 
239fb915e6 2023-10-19  560: ---检查c用作连接素材时是否属于类型type(与IsType的区别在于对于魔陷区的怪兽卡,用其原本类型作判断)
239fb915e6 2023-10-19  561: ---@return boolean
239fb915e6 2023-10-19  562: ---@param c Card
239fb915e6 2023-10-19  563: ---@param type integer
239fb915e6 2023-10-19  564: function Card.IsLinkType(c,type) end
239fb915e6 2023-10-19  565: 
239fb915e6 2023-10-19  566: ---检查c是否是等级 level1[, 或者为 level2...]
239fb915e6 2023-10-19  567: ---@return boolean
239fb915e6 2023-10-19  568: ---@param c Card
239fb915e6 2023-10-19  569: ---@param level1 integer
239fb915e6 2023-10-19  570: ---@param level2? integer
239fb915e6 2023-10-19  571: ---@param ...? integer
239fb915e6 2023-10-19  572: function Card.IsLevel(c,level1,level2,...) end
239fb915e6 2023-10-19  573: 
239fb915e6 2023-10-19  574: ---检查c是否是阶级 rank1[, 或者为 rank2...]
239fb915e6 2023-10-19  575: ---@return boolean
239fb915e6 2023-10-19  576: ---@param c Card
239fb915e6 2023-10-19  577: ---@param rank1 integer
239fb915e6 2023-10-19  578: ---@param rank2? integer
239fb915e6 2023-10-19  579: ---@param ...? integer
239fb915e6 2023-10-19  580: function Card.IsRank(c,rank1,rank2,...) end
239fb915e6 2023-10-19  581: 
239fb915e6 2023-10-19  582: ---检查c的连接标记数量是否是 link1[, 或者为 link2...]
239fb915e6 2023-10-19  583: ---@return boolean
239fb915e6 2023-10-19  584: ---@param c Card
239fb915e6 2023-10-19  585: ---@param link1 integer
239fb915e6 2023-10-19  586: ---@param link2? integer
239fb915e6 2023-10-19  587: ---@param ...? integer
239fb915e6 2023-10-19  588: function Card.IsLink(c,link1,link2,...) end
239fb915e6 2023-10-19  589: 
239fb915e6 2023-10-19  590: ---检查c的攻击力是否是 atk1[, 或者为 atk2...],如果c不是怪兽卡,或者不在 LOCATION_MZONE 则都返回false
239fb915e6 2023-10-19  591: ---@return boolean
239fb915e6 2023-10-19  592: ---@param c Card
239fb915e6 2023-10-19  593: ---@param atk1 integer
239fb915e6 2023-10-19  594: ---@param atk2? integer
239fb915e6 2023-10-19  595: ---@param ...? integer
239fb915e6 2023-10-19  596: function Card.IsAttack(c,atk1,atk2,...) end
239fb915e6 2023-10-19  597: 
239fb915e6 2023-10-19  598: ---检查c的守备力是否是 def1[, 或者为 def2...],如果c不是怪兽卡,或者不在 LOCATION_MZONE 则都返回false
239fb915e6 2023-10-19  599: ---@return boolean
239fb915e6 2023-10-19  600: ---@param c Card
239fb915e6 2023-10-19  601: ---@param def integer
239fb915e6 2023-10-19  602: ---@param atk2? integer
239fb915e6 2023-10-19  603: ---@param ...? integer
239fb915e6 2023-10-19  604: function Card.IsDefense(c,def,atk2,...) end
239fb915e6 2023-10-19  605: 
239fb915e6 2023-10-19  606: ---检查c是否属于种族race
239fb915e6 2023-10-19  607: ---@return boolean
239fb915e6 2023-10-19  608: ---@param c Card
239fb915e6 2023-10-19  609: ---@param race integer
239fb915e6 2023-10-19  610: function Card.IsRace(c,race) end
239fb915e6 2023-10-19  611: 
239fb915e6 2023-10-19  612: ---检查c[由player连接召唤时]用作连接素材时是否属于种族race
239fb915e6 2023-10-19  613: ---@return boolean
239fb915e6 2023-10-19  614: ---@param c Card
239fb915e6 2023-10-19  615: ---@param race integer
239fb915e6 2023-10-19  616: ---@param player? integer
239fb915e6 2023-10-19  617: function Card.IsLinkRace(c,race,player) end
239fb915e6 2023-10-19  618: 
239fb915e6 2023-10-19  619: ---检查c是否属于属性attribute
239fb915e6 2023-10-19  620: ---@return boolean
239fb915e6 2023-10-19  621: ---@param c Card
239fb915e6 2023-10-19  622: ---@param attribute integer
239fb915e6 2023-10-19  623: function Card.IsAttribute(c,attribute) end
239fb915e6 2023-10-19  624: 
239fb915e6 2023-10-19  625: ---检查c[由player融合召唤时]用作融合素材是否属于属性attribute
239fb915e6 2023-10-19  626: ---@return boolean
239fb915e6 2023-10-19  627: ---@param c Card
239fb915e6 2023-10-19  628: ---@param attribute integer
239fb915e6 2023-10-19  629: ---@param player? integer
239fb915e6 2023-10-19  630: function Card.IsFusionAttribute(c,attribute,player) end
239fb915e6 2023-10-19  631: 
239fb915e6 2023-10-19  632: ---检查c[由player连接召唤时]用作连接素材是否属于属性attribute
239fb915e6 2023-10-19  633: ---@return boolean
239fb915e6 2023-10-19  634: ---@param c Card
239fb915e6 2023-10-19  635: ---@param attribute integer
239fb915e6 2023-10-19  636: ---@param player? integer
239fb915e6 2023-10-19  637: function Card.IsLinkAttribute(c,attribute,player) end
239fb915e6 2023-10-19  638: 
239fb915e6 2023-10-19  639: ---检查c是否有attribute以外的属性
239fb915e6 2023-10-19  640: ---(如暗黑神鸟同时具有暗和风属性,not IsAttribute(暗)是false,但IsNonAttribute(暗)是true)
239fb915e6 2023-10-19  641: ---@return boolean
239fb915e6 2023-10-19  642: ---@param c Card
239fb915e6 2023-10-19  643: ---@param attribute integer
239fb915e6 2023-10-19  644: function Card.IsNonAttribute(c,attribute) end
239fb915e6 2023-10-19  645: 
239fb915e6 2023-10-19  646: ---检查c原本是否为融合·同调·XYZ·连接怪兽。这个函数只检查类型,不关心被检查的怪兽的现状。
239fb915e6 2023-10-19  647: ---@return boolean
239fb915e6 2023-10-19  648: ---@param c Card
239fb915e6 2023-10-19  649: function Card.IsExtraDeckMonster(c) end
239fb915e6 2023-10-19  650: 
239fb915e6 2023-10-19  651: ---检查c是否包含原因reason
239fb915e6 2023-10-19  652: ---@return boolean
239fb915e6 2023-10-19  653: ---@param c Card
239fb915e6 2023-10-19  654: ---@param reason integer
239fb915e6 2023-10-19  655: function Card.IsReason(c,reason) end
239fb915e6 2023-10-19  656: 
239fb915e6 2023-10-19  657: ---检查c的召唤类型是否是sumtype
239fb915e6 2023-10-19  658: ---@return boolean
239fb915e6 2023-10-19  659: ---@param c Card
239fb915e6 2023-10-19  660: ---@param sumtype integer
239fb915e6 2023-10-19  661: function Card.IsSummonType(c,sumtype) end
239fb915e6 2023-10-19  662: 
239fb915e6 2023-10-19  663: ---检查c召唤·特殊召唤的位置是否为loc
239fb915e6 2023-10-19  664: ---@return boolean
239fb915e6 2023-10-19  665: ---@param c Card
239fb915e6 2023-10-19  666: ---@param loc integer
239fb915e6 2023-10-19  667: function Card.IsSummonLocation(c,loc) end
239fb915e6 2023-10-19  668: 
239fb915e6 2023-10-19  669: ---检查将c召唤·特殊召唤的玩家是否为player
239fb915e6 2023-10-19  670: ---@return boolean
239fb915e6 2023-10-19  671: ---@param c Card
239fb915e6 2023-10-19  672: ---@param player integer
239fb915e6 2023-10-19  673: function Card.IsSummonPlayer(c,player) end
239fb915e6 2023-10-19  674: 
239fb915e6 2023-10-19  675: ---检查c是否包含某个状态码
239fb915e6 2023-10-19  676: ---@return boolean
239fb915e6 2023-10-19  677: ---@param c Card
239fb915e6 2023-10-19  678: ---@param status integer
239fb915e6 2023-10-19  679: function Card.IsStatus(c,status) end
239fb915e6 2023-10-19  680: 
239fb915e6 2023-10-19  681: ---检查c是否可以当成非调整来使用
239fb915e6 2023-10-19  682: ---@return boolean
239fb915e6 2023-10-19  683: ---@param c Card
239fb915e6 2023-10-19  684: function Card.IsNotTuner(c) end
239fb915e6 2023-10-19  685: 
239fb915e6 2023-10-19  686: ---检查c是否是调整怪兽。
239fb915e6 2023-10-19  687: ---除了检查TYPE_TUNER以外,还会检查其身上所有能让其变为调整怪兽的效果。
239fb915e6 2023-10-19  688: ---@return boolean
239fb915e6 2023-10-19  689: ---@param c Card
239fb915e6 2023-10-19  690: function Card.IsTuner(c) end
239fb915e6 2023-10-19  691: 
239fb915e6 2023-10-19  692: ---给c设置或者取消状态码
239fb915e6 2023-10-19  693: ---除非妳清楚的了解每个状态码的含意,否则不要轻易使用此函数
239fb915e6 2023-10-19  694: ---@param c Card
239fb915e6 2023-10-19  695: ---@param state integer
239fb915e6 2023-10-19  696: ---@param enable boolean
239fb915e6 2023-10-19  697: function Card.SetStatus(c,state,enable) end
239fb915e6 2023-10-19  698: 
239fb915e6 2023-10-19  699: ---检查c属否处于再召唤状态
239fb915e6 2023-10-19  700: ---@return boolean
239fb915e6 2023-10-19  701: ---@param c Card
239fb915e6 2023-10-19  702: function Card.IsDualState(c) end
239fb915e6 2023-10-19  703: 
239fb915e6 2023-10-19  704: ---把c设置成再召唤状态
239fb915e6 2023-10-19  705: ---@param c Card
239fb915e6 2023-10-19  706: function Card.EnableDualState(c) end
239fb915e6 2023-10-19  707: 
239fb915e6 2023-10-19  708: ---设置c的回合计数器(光之护封剑等)
239fb915e6 2023-10-19  709: ---@param c Card
239fb915e6 2023-10-19  710: ---@param counter integer
239fb915e6 2023-10-19  711: function Card.SetTurnCounter(c,counter) end
239fb915e6 2023-10-19  712: 
239fb915e6 2023-10-19  713: ---返回c的回合计数器
239fb915e6 2023-10-19  714: ---@return integer
239fb915e6 2023-10-19  715: ---@param c Card
239fb915e6 2023-10-19  716: function Card.GetTurnCounter(c) end
239fb915e6 2023-10-19  717: 
239fb915e6 2023-10-19  718: ---把g中的所有卡作为c的素材(上级召唤,特殊召唤)
239fb915e6 2023-10-19  719: ---@param c Card
239fb915e6 2023-10-19  720: ---@param g Group|nil
239fb915e6 2023-10-19  721: function Card.SetMaterial(c,g) end
239fb915e6 2023-10-19  722: 
239fb915e6 2023-10-19  723: ---返回c出场使用的素材
239fb915e6 2023-10-19  724: ---@return Group
239fb915e6 2023-10-19  725: ---@param c Card
239fb915e6 2023-10-19  726: function Card.GetMaterial(c) end
239fb915e6 2023-10-19  727: 
239fb915e6 2023-10-19  728: ---返回c出场使用的素材数量
239fb915e6 2023-10-19  729: ---@return integer
239fb915e6 2023-10-19  730: ---@param c Card
239fb915e6 2023-10-19  731: function Card.GetMaterialCount(c) end
239fb915e6 2023-10-19  732: 
239fb915e6 2023-10-19  733: ---返回c当前装备着的卡片组
239fb915e6 2023-10-19  734: ---@return Group
239fb915e6 2023-10-19  735: ---@param c Card
239fb915e6 2023-10-19  736: function Card.GetEquipGroup(c) end
239fb915e6 2023-10-19  737: 
239fb915e6 2023-10-19  738: ---返回c当前装备着的卡片数量
239fb915e6 2023-10-19  739: ---@return integer
239fb915e6 2023-10-19  740: ---@param c Card
239fb915e6 2023-10-19  741: function Card.GetEquipCount(c) end
239fb915e6 2023-10-19  742: 
239fb915e6 2023-10-19  743: ---返回c当前的装备对象
239fb915e6 2023-10-19  744: ---@return Card
239fb915e6 2023-10-19  745: ---@param c Card
239fb915e6 2023-10-19  746: function Card.GetEquipTarget(c) end
239fb915e6 2023-10-19  747: 
239fb915e6 2023-10-19  748: ---返回c之前的装备对象
239fb915e6 2023-10-19  749: ---@return Card
239fb915e6 2023-10-19  750: ---@param c Card
239fb915e6 2023-10-19  751: function Card.GetPreviousEquipTarget(c) end
239fb915e6 2023-10-19  752: 
239fb915e6 2023-10-19  753: ---检查c2是否是c1的正确的装备对象
239fb915e6 2023-10-19  754: ---##由EFFECT_EQUIP_LIMIT效果或同盟状态确定
239fb915e6 2023-10-19  755: ---@return boolean
239fb915e6 2023-10-19  756: ---@param c1 Card
239fb915e6 2023-10-19  757: ---@param c2 Card
239fb915e6 2023-10-19  758: function Card.CheckEquipTarget(c1,c2) end
239fb915e6 2023-10-19  759: 
239fb915e6 2023-10-19  760: ---检查ec是否为c的有效同盟装备对象。会检查EFFECT_UNION_LIMIT影响和新旧同盟影响。
239fb915e6 2023-10-19  761: ---@return Card
239fb915e6 2023-10-19  762: ---@param c Card
239fb915e6 2023-10-19  763: ---@param ec Card
239fb915e6 2023-10-19  764: function Card.CheckUnionTarget(c,ec) end
239fb915e6 2023-10-19  765: 
239fb915e6 2023-10-19  766: ---返回c当前装备的同盟卡数量
239fb915e6 2023-10-19  767: ---@return integer
239fb915e6 2023-10-19  768: ---@param c Card
239fb915e6 2023-10-19  769: function Card.GetUnionCount(c) end
239fb915e6 2023-10-19  770: 
239fb915e6 2023-10-19  771: ---返回c当前叠放着的卡片组
239fb915e6 2023-10-19  772: ---@return Group
239fb915e6 2023-10-19  773: ---@param c Card
239fb915e6 2023-10-19  774: function Card.GetOverlayGroup(c) end
239fb915e6 2023-10-19  775: 
239fb915e6 2023-10-19  776: ---返回c当前叠放着的卡片数量
239fb915e6 2023-10-19  777: ---@return integer
239fb915e6 2023-10-19  778: ---@param c Card
239fb915e6 2023-10-19  779: function Card.GetOverlayCount(c) end
239fb915e6 2023-10-19  780: 
239fb915e6 2023-10-19  781: ---返回以c为XYZ素材的卡
239fb915e6 2023-10-19  782: ---@return Card
239fb915e6 2023-10-19  783: ---@param c Card
239fb915e6 2023-10-19  784: function Card.GetOverlayTarget(c) end
239fb915e6 2023-10-19  785: 
239fb915e6 2023-10-19  786: ---检查玩家player能否以reason为原因,至少移除c叠放的count张卡
239fb915e6 2023-10-19  787: ---@return boolean
239fb915e6 2023-10-19  788: ---@param c Card
239fb915e6 2023-10-19  789: ---@param player integer
239fb915e6 2023-10-19  790: ---@param count integer
239fb915e6 2023-10-19  791: ---@param reason integer
239fb915e6 2023-10-19  792: function Card.CheckRemoveOverlayCard(c,player,count,reason) end
239fb915e6 2023-10-19  793: 
239fb915e6 2023-10-19  794: ---以reason为原因,让玩家player移除c叠放的min-max张卡,返回值表示移除的数量
239fb915e6 2023-10-19  795: ---@return integer
239fb915e6 2023-10-19  796: ---@param c Card
239fb915e6 2023-10-19  797: ---@param player integer
239fb915e6 2023-10-19  798: ---@param min integer
239fb915e6 2023-10-19  799: ---@param max integer
239fb915e6 2023-10-19  800: ---@param reason integer
239fb915e6 2023-10-19  801: function Card.RemoveOverlayCard(c,player,min,max,reason) end
239fb915e6 2023-10-19  802: 
239fb915e6 2023-10-19  803: ---返回c本回合攻击过的卡片组
239fb915e6 2023-10-19  804: ---@return Group
239fb915e6 2023-10-19  805: ---@param c Card
239fb915e6 2023-10-19  806: function Card.GetAttackedGroup(c) end
239fb915e6 2023-10-19  807: 
239fb915e6 2023-10-19  808: ---返回c本回合攻击过的卡片数量
239fb915e6 2023-10-19  809: ---@return integer
239fb915e6 2023-10-19  810: ---@param c Card
239fb915e6 2023-10-19  811: function Card.GetAttackedGroupCount(c) end
239fb915e6 2023-10-19  812: 
239fb915e6 2023-10-19  813: ---返回c本回合攻击过的次数
239fb915e6 2023-10-19  814: ---注:如果此值与上一个函数的返回值不同,那么说明此卡本回合进行过直接攻击
239fb915e6 2023-10-19  815: ---@return integer
239fb915e6 2023-10-19  816: ---@param c Card
239fb915e6 2023-10-19  817: function Card.GetAttackedCount(c) end
239fb915e6 2023-10-19  818: 
239fb915e6 2023-10-19  819: ---返回与c本回合进行过战斗的卡片组
239fb915e6 2023-10-19  820: ---进行过战斗指发生过伤害的计算,用于剑斗兽等卡的判定
239fb915e6 2023-10-19  821: ---@return Group
239fb915e6 2023-10-19  822: ---@param c Card
239fb915e6 2023-10-19  823: function Card.GetBattledGroup(c) end
239fb915e6 2023-10-19  824: 
239fb915e6 2023-10-19  825: ---返回与c本回合进行过战斗的的卡片数量
239fb915e6 2023-10-19  826: ---@return integer
239fb915e6 2023-10-19  827: ---@param c Card
239fb915e6 2023-10-19  828: function Card.GetBattledGroupCount(c) end
239fb915e6 2023-10-19  829: 
239fb915e6 2023-10-19  830: ---返回c本回合攻击宣言的次数
239fb915e6 2023-10-19  831: ---注:攻击被无效不会被计入攻击过的次数,但是会计入攻击宣言的次数
239fb915e6 2023-10-19  832: ---@return integer
239fb915e6 2023-10-19  833: ---@param c Card
239fb915e6 2023-10-19  834: function Card.GetAttackAnnouncedCount(c) end
239fb915e6 2023-10-19  835: 
239fb915e6 2023-10-19  836: ---检查c是否直接攻击过
239fb915e6 2023-10-19  837: ---@return boolean
239fb915e6 2023-10-19  838: ---@param c Card
239fb915e6 2023-10-19  839: function Card.IsDirectAttacked(c) end
239fb915e6 2023-10-19  840: 
239fb915e6 2023-10-19  841: ---把c2作为c1的永续对象
239fb915e6 2023-10-19  842: ---c1和c2的联系会在c1或c2任意一卡离场或变成里侧表示时reset
239fb915e6 2023-10-19  843: ---@param c1 Card
239fb915e6 2023-10-19  844: ---@param c2 Card
239fb915e6 2023-10-19  845: function Card.SetCardTarget(c1,c2) end
239fb915e6 2023-10-19  846: 
239fb915e6 2023-10-19  847: ---返回c当前所有的永续对象
239fb915e6 2023-10-19  848: ---@return Group
239fb915e6 2023-10-19  849: ---@param c Card
239fb915e6 2023-10-19  850: function Card.GetCardTarget(c) end
239fb915e6 2023-10-19  851: 
239fb915e6 2023-10-19  852: ---返回c当前第一个永续对象,没有则返回 nil
239fb915e6 2023-10-19  853: ---@return Card
239fb915e6 2023-10-19  854: ---@param c Card
239fb915e6 2023-10-19  855: function Card.GetFirstCardTarget(c) end
239fb915e6 2023-10-19  856: 
239fb915e6 2023-10-19  857: ---返回c当前的永续对象的数量
239fb915e6 2023-10-19  858: ---@return integer
239fb915e6 2023-10-19  859: ---@param c Card
239fb915e6 2023-10-19  860: function Card.GetCardTargetCount(c) end
239fb915e6 2023-10-19  861: 
239fb915e6 2023-10-19  862: ---检查c2是否取c1为永续对象
239fb915e6 2023-10-19  863: ---@return boolean
239fb915e6 2023-10-19  864: ---@param c1 Card
239fb915e6 2023-10-19  865: ---@param c2 Card
239fb915e6 2023-10-19  866: function Card.IsHasCardTarget(c1,c2) end
239fb915e6 2023-10-19  867: 
239fb915e6 2023-10-19  868: ---取消c2为c1的永续对象
239fb915e6 2023-10-19  869: ---@param c1 Card
239fb915e6 2023-10-19  870: ---@param c2 Card
239fb915e6 2023-10-19  871: function Card.CancelCardTarget(c1,c2) end
239fb915e6 2023-10-19  872: 
239fb915e6 2023-10-19  873: ---返回取c作为永续对象的所有卡
239fb915e6 2023-10-19  874: ---@return Group
239fb915e6 2023-10-19  875: ---@param c Card
239fb915e6 2023-10-19  876: function Card.GetOwnerTarget(c) end
239fb915e6 2023-10-19  877: 
239fb915e6 2023-10-19  878: ---返回取c作为永续对象的卡的数量
239fb915e6 2023-10-19  879: ---@return integer
239fb915e6 2023-10-19  880: ---@param c Card
239fb915e6 2023-10-19  881: function Card.GetOwnerTargetCount(c) end
239fb915e6 2023-10-19  882: 
239fb915e6 2023-10-19  883: ---返回c的“卡片发动”的效果,即类型为EFFECT_TYPE_ACTIVATE的效果
239fb915e6 2023-10-19  884: ---仅对魔法和陷阱有效
239fb915e6 2023-10-19  885: ---@return Effect
239fb915e6 2023-10-19  886: ---@return ...? Effect
239fb915e6 2023-10-19  887: ---@param c Card
239fb915e6 2023-10-19  888: function Card.GetActivateEffect(c) end
239fb915e6 2023-10-19  889: 
239fb915e6 2023-10-19  890: ---返回c的可以发动时机正确的“卡的发动”的效果,neglect_con=true则无视发动条件,neglect_cost=true则无视发动cost
239fb915e6 2023-10-19  891: ---copy_info=false或者自由时点的效果则只返回这个效果 e
239fb915e6 2023-10-19  892: ---否则还返回这个效果的触发时点的信息 e,eg,ep,ev,re,r,rp
239fb915e6 2023-10-19  893: ---@return Effect
239fb915e6 2023-10-19  894: ---@return Group|nil
239fb915e6 2023-10-19  895: ---@return integer|nil
239fb915e6 2023-10-19  896: ---@return integer|nil
239fb915e6 2023-10-19  897: ---@return Effect|nil
239fb915e6 2023-10-19  898: ---@return integer|nil
239fb915e6 2023-10-19  899: ---@return integer|nil
239fb915e6 2023-10-19  900: ---@param c Card
239fb915e6 2023-10-19  901: ---@param neglect_con boolean
239fb915e6 2023-10-19  902: ---@param neglect_cost boolean
239fb915e6 2023-10-19  903: ---@param copy_info boolean
239fb915e6 2023-10-19  904: function Card.CheckActivateEffect(c,neglect_con,neglect_cost,copy_info) end
239fb915e6 2023-10-19  905: 
239fb915e6 2023-10-19  906: ---如果卡片 c 受到同调素材限制效果 EFFECT_TUNER_MATERIAL_LIMIT 影响,则返回 Effect e,function target,int value,int min,int max ;否则返回nil
239fb915e6 2023-10-19  907: ---@return nil|Effect
239fb915e6 2023-10-19  908: ---@return function|nil
239fb915e6 2023-10-19  909: ---@return integer|nil
239fb915e6 2023-10-19  910: ---@return integer|nil
239fb915e6 2023-10-19  911: ---@return integer|nil
239fb915e6 2023-10-19  912: ---@param c Card
239fb915e6 2023-10-19  913: function Card.GetTunerLimit(c) end
239fb915e6 2023-10-19  914: 
239fb915e6 2023-10-19  915: ---如果卡片 c 受到手卡同调效果 EFFECT_HAND_SYNCHRO 影响,则返回 Effect e,function target,int min,int max ;否则返回nil
239fb915e6 2023-10-19  916: ---@return nil|Effect
239fb915e6 2023-10-19  917: ---@return function|nil
239fb915e6 2023-10-19  918: ---@return integer|nil
239fb915e6 2023-10-19  919: ---@return integer|nil
239fb915e6 2023-10-19  920: ---@param c Card
239fb915e6 2023-10-19  921: function Card.GetHandSynchro(c) end
239fb915e6 2023-10-19  922: 
239fb915e6 2023-10-19  923: ---把效果e注册给c,返回效果的全局id,并设置e的Handler为c
239fb915e6 2023-10-19  924: ---默认情况下注册时如果c带有免疫e的效果那么注册会失败
239fb915e6 2023-10-19  925: ---如果forced为true则不会检查c对e的免疫效果
239fb915e6 2023-10-19  926: ---@return integer
239fb915e6 2023-10-19  927: ---@param c Card
239fb915e6 2023-10-19  928: ---@param e Effect
239fb915e6 2023-10-19  929: ---@param forced? boolean default: false
239fb915e6 2023-10-19  930: function Card.RegisterEffect(c,e,forced) end
239fb915e6 2023-10-19  931: 
239fb915e6 2023-10-19  932: ---检查c是否受到效果种类是code的效果的影响
239fb915e6 2023-10-19  933: ---没有则返回nil
239fb915e6 2023-10-19  934: ---有则返回那些效果
239fb915e6 2023-10-19  935: ---@return Effect
239fb915e6 2023-10-19  936: ---@return ...? Effect
239fb915e6 2023-10-19  937: ---@param c Card
239fb915e6 2023-10-19  938: ---@param code integer
239fb915e6 2023-10-19  939: ---@param player? integer
239fb915e6 2023-10-19  940: function Card.IsHasEffect(c,code,player) end
239fb915e6 2023-10-19  941: 
239fb915e6 2023-10-19  942: ---以重置类型为reset_type、重置种类为reset_code手动重置c受到的效果的影响
239fb915e6 2023-10-19  943: ---reset_type只能是以下类型,对应的重置种类为
239fb915e6 2023-10-19  944: ---RESET_EVENT       发生事件重置        reset_code为事件
239fb915e6 2023-10-19  945: ---RESET_PHASE       阶段结束重置        reset_code为阶段
239fb915e6 2023-10-19  946: ---RESET_CODE        重置指定code的效果  reset_code为效果的种类code,只能重置EFFECT_TYPE_SINGLE的永续型效果
239fb915e6 2023-10-19  947: ---RESET_COPY        重置复制的效果      reset_code为copy_id
239fb915e6 2023-10-19  948: ---RESET_CARD        重置卡片的效果      reset_code为效果owner的卡号
239fb915e6 2023-10-19  949: ---@param c Card
239fb915e6 2023-10-19  950: ---@param reset_code integer
239fb915e6 2023-10-19  951: ---@param reset_type integer
239fb915e6 2023-10-19  952: function Card.ResetEffect(c,reset_code,reset_type) end
239fb915e6 2023-10-19  953: 
239fb915e6 2023-10-19  954: ---返回c受到影响的种类是code的效果的数量
239fb915e6 2023-10-19  955: ---@return integer
239fb915e6 2023-10-19  956: ---@param c Card
239fb915e6 2023-10-19  957: ---@param code integer
239fb915e6 2023-10-19  958: function Card.GetEffectCount(c,code) end
239fb915e6 2023-10-19  959: 
239fb915e6 2023-10-19  960: ---为c注册一个标识用效果
239fb915e6 2023-10-19  961: ---注:注册给卡的标识用效果不会用于系统,
239fb915e6 2023-10-19  962: ---即使code与内置效果code重合也不会影响,
239fb915e6 2023-10-19  963: ---并且类型总是EFFECT_TYPE_SINGLE,reset方法,property和一般的效果相同,
239fb915e6 2023-10-19  964: ---并且不会无效化,不受卡的免疫效果影响
239fb915e6 2023-10-19  965: ---@return Effect
239fb915e6 2023-10-19  966: ---@param c Card
239fb915e6 2023-10-19  967: ---@param code integer
239fb915e6 2023-10-19  968: ---@param reset_flag integer
239fb915e6 2023-10-19  969: ---@param property integer
239fb915e6 2023-10-19  970: ---@param reset_count integer
239fb915e6 2023-10-19  971: ---@param label? integer
239fb915e6 2023-10-19  972: ---@param desc? integer
239fb915e6 2023-10-19  973: function Card.RegisterFlagEffect(c,code,reset_flag,property,reset_count,label,desc) end
239fb915e6 2023-10-19  974: 
239fb915e6 2023-10-19  975: ---返回c的种类是code的标识效果的数量
239fb915e6 2023-10-19  976: ---@return integer
239fb915e6 2023-10-19  977: ---@param c Card
239fb915e6 2023-10-19  978: ---@param code integer
239fb915e6 2023-10-19  979: function Card.GetFlagEffect(c,code) end
239fb915e6 2023-10-19  980: 
239fb915e6 2023-10-19  981: ---手动清除c的种类是code的标识效果
239fb915e6 2023-10-19  982: ---@param c Card
239fb915e6 2023-10-19  983: ---@param code integer
239fb915e6 2023-10-19  984: function Card.ResetFlagEffect(c,code) end
239fb915e6 2023-10-19  985: 
239fb915e6 2023-10-19  986: ---返回c是否存在种类为code的标识效果,并设置其Label属性为label
239fb915e6 2023-10-19  987: ---@return boolean
239fb915e6 2023-10-19  988: ---@param c Card
239fb915e6 2023-10-19  989: ---@param code integer
239fb915e6 2023-10-19  990: ---@param label integer
239fb915e6 2023-10-19  991: function Card.SetFlagEffectLabel(c,code,label) end
239fb915e6 2023-10-19  992: 
239fb915e6 2023-10-19  993: ---返回c的种类为code的标识效果的Label(数量可能不止一个),没有此效果则返回nil
239fb915e6 2023-10-19  994: ---@return integer
239fb915e6 2023-10-19  995: ---@return ...? integer
239fb915e6 2023-10-19  996: ---@param c Card
239fb915e6 2023-10-19  997: ---@param code integer
239fb915e6 2023-10-19  998: function Card.GetFlagEffectLabel(c,code) end
239fb915e6 2023-10-19  999: 
239fb915e6 2023-10-19 1000: ---为c1建立与c2的联系,此联系仅会由于c1发生RESET_EVENT的事件reset
239fb915e6 2023-10-19 1001: ---@param c1 Card
239fb915e6 2023-10-19 1002: ---@param c2 Card
239fb915e6 2023-10-19 1003: ---@param reset_flag integer
239fb915e6 2023-10-19 1004: function Card.CreateRelation(c1,c2,reset_flag) end
239fb915e6 2023-10-19 1005: 
239fb915e6 2023-10-19 1006: ---手动释放c1对于c2的联系
239fb915e6 2023-10-19 1007: ---@param c1 Card
239fb915e6 2023-10-19 1008: ---@param c2 Card
239fb915e6 2023-10-19 1009: function Card.ReleaseRelation(c1,c2) end
239fb915e6 2023-10-19 1010: 
239fb915e6 2023-10-19 1011: ---为卡片c和效果e建立联系
239fb915e6 2023-10-19 1012: ---@param c Card
239fb915e6 2023-10-19 1013: ---@param e Effect
239fb915e6 2023-10-19 1014: function Card.CreateEffectRelation(c,e) end
239fb915e6 2023-10-19 1015: 
239fb915e6 2023-10-19 1016: ---手动释放c与效果e的联系
239fb915e6 2023-10-19 1017: ---@param c Card
239fb915e6 2023-10-19 1018: ---@param e Effect
239fb915e6 2023-10-19 1019: function Card.ReleaseEffectRelation(c,e) end
239fb915e6 2023-10-19 1020: 
239fb915e6 2023-10-19 1021: ---清空c所有联系的效果
239fb915e6 2023-10-19 1022: ---@param c Card
239fb915e6 2023-10-19 1023: function Card.ClearEffectRelation(c) end
239fb915e6 2023-10-19 1024: 
239fb915e6 2023-10-19 1025: ---检查c是否和效果e有联系
239fb915e6 2023-10-19 1026: ---注:每次发动进入连锁的效果时,发动效果的卡,以及发动效果时指定的对象
239fb915e6 2023-10-19 1027: ---(用Duel.SetTargetCard或者Duel.SelectTarget指定的,包括取对象和不取对象)
239fb915e6 2023-10-19 1028: ---会自动与那个效果建立联系,一旦离场,联系会重置
239fb915e6 2023-10-19 1029: ---@return boolean
239fb915e6 2023-10-19 1030: ---@param c Card
239fb915e6 2023-10-19 1031: ---@param e Effect
239fb915e6 2023-10-19 1032: function Card.IsRelateToEffect(c,e) end
239fb915e6 2023-10-19 1033: 
239fb915e6 2023-10-19 1034: ---检查c是否和连锁chainc有联系
239fb915e6 2023-10-19 1035: ---注:每次发动进入连锁的效果时,发动效果的卡,以及发动效果时指定的对象
239fb915e6 2023-10-19 1036: ---(用Duel.SetTargetCard或者Duel.SelectTarget指定的,包括取对象和不取对象)
239fb915e6 2023-10-19 1037: ---会自动与那个效果建立联系,一旦离场,联系会重置
239fb915e6 2023-10-19 1038: ---@return boolean
239fb915e6 2023-10-19 1039: ---@param c Card
239fb915e6 2023-10-19 1040: ---@param chainc? integer default: 0
239fb915e6 2023-10-19 1041: function Card.IsRelateToChain(c,chainc) end
239fb915e6 2023-10-19 1042: 
239fb915e6 2023-10-19 1043: ---检查c1是否和c2有联系
239fb915e6 2023-10-19 1044: ---@return boolean
239fb915e6 2023-10-19 1045: ---@param c1 Card
239fb915e6 2023-10-19 1046: ---@param c2 Card
239fb915e6 2023-10-19 1047: function Card.IsRelateToCard(c1,c2) end
239fb915e6 2023-10-19 1048: 
239fb915e6 2023-10-19 1049: ---检查c是否和本次战斗关联
239fb915e6 2023-10-19 1050: ---注:此效果通常用于伤害计算后伤害阶段结束前,用于检查战斗的卡是否离场过
239fb915e6 2023-10-19 1051: ---@return boolean
239fb915e6 2023-10-19 1052: ---@param c Card
239fb915e6 2023-10-19 1053: function Card.IsRelateToBattle(c) end
239fb915e6 2023-10-19 1054: 
239fb915e6 2023-10-19 1055: ---为c添加卡号是code的卡的可复制的效果,并且添加额外的reset条件
239fb915e6 2023-10-19 1056: ---返回值是表示复制效果的代号id
239fb915e6 2023-10-19 1057: ---@return integer
239fb915e6 2023-10-19 1058: ---@param c Card
239fb915e6 2023-10-19 1059: ---@param code integer
239fb915e6 2023-10-19 1060: ---@param reset_flag integer
239fb915e6 2023-10-19 1061: ---@param reset_count? integer default: 1
239fb915e6 2023-10-19 1062: function Card.CopyEffect(c,code,reset_flag,reset_count) end
239fb915e6 2023-10-19 1063: 
239fb915e6 2023-10-19 1064: ---把c的效果替换为卡号是code的卡的效果,并且添加额外的reset条件
239fb915e6 2023-10-19 1065: ---返回值是表示替换效果的代号id
239fb915e6 2023-10-19 1066: ---@return integer
239fb915e6 2023-10-19 1067: ---@param c Card
239fb915e6 2023-10-19 1068: ---@param code integer
239fb915e6 2023-10-19 1069: ---@param reset_flag integer
239fb915e6 2023-10-19 1070: ---@param reset_count? integer default: 1
239fb915e6 2023-10-19 1071: function Card.ReplaceEffect(c,code,reset_flag,reset_count) end
239fb915e6 2023-10-19 1072: 
239fb915e6 2023-10-19 1073: ---为c添加苏生限制
239fb915e6 2023-10-19 1074: ---##实际上是不可复制、不会被无效的EFFECT_UNSUMMONABLE_CARD和EFFECT_REVIVE_LIMIT效果
239fb915e6 2023-10-19 1075: ---@param c Card
239fb915e6 2023-10-19 1076: function Card.EnableReviveLimit(c) end
239fb915e6 2023-10-19 1077: 
239fb915e6 2023-10-19 1078: ---使c完成正规的召唤手续
239fb915e6 2023-10-19 1079: ---##此函数也可通过 c:SetStatus(STATUS_PROC_COMPLETE,true)实现
239fb915e6 2023-10-19 1080: ---@param c Card
239fb915e6 2023-10-19 1081: function Card.CompleteProcedure(c) end
239fb915e6 2023-10-19 1082: 
239fb915e6 2023-10-19 1083: ---检查c是否处于无效状态
239fb915e6 2023-10-19 1084: ---@return boolean
239fb915e6 2023-10-19 1085: ---@param c Card
239fb915e6 2023-10-19 1086: function Card.IsDisabled(c) end
239fb915e6 2023-10-19 1087: 
239fb915e6 2023-10-19 1088: ---检查c是否是可被[效果 e]破坏的
239fb915e6 2023-10-19 1089: ---@return boolean
239fb915e6 2023-10-19 1090: ---@param c Card
239fb915e6 2023-10-19 1091: ---@param e? Effect
239fb915e6 2023-10-19 1092: function Card.IsDestructable(c,e) end
239fb915e6 2023-10-19 1093: 
239fb915e6 2023-10-19 1094: ---检查c是否是可通常召唤的卡
239fb915e6 2023-10-19 1095: ---@return boolean
239fb915e6 2023-10-19 1096: ---@param c Card
239fb915e6 2023-10-19 1097: function Card.IsSummonableCard(c) end
239fb915e6 2023-10-19 1098: 
239fb915e6 2023-10-19 1099: ---检查c是否能以正规方法特殊召唤。
239fb915e6 2023-10-19 1100: ---c必须有可特殊召唤的方式。
239fb915e6 2023-10-19 1101: ---@return boolean
239fb915e6 2023-10-19 1102: ---@param c Card
239fb915e6 2023-10-19 1103: function Card.IsSpecialSummonableCard(c) end
239fb915e6 2023-10-19 1104: 
239fb915e6 2023-10-19 1105: ---检查c是否是可[用 sum_type 方式]融合召唤的卡
239fb915e6 2023-10-19 1106: ---@return boolean
239fb915e6 2023-10-19 1107: ---@param c Card
239fb915e6 2023-10-19 1108: ---@param sum_type? integer
239fb915e6 2023-10-19 1109: function Card.IsFusionSummonableCard(c,sum_type) end
239fb915e6 2023-10-19 1110: 
239fb915e6 2023-10-19 1111: ---检查是否可以对c[用 sum_type 方式]进行特殊召唤手续
239fb915e6 2023-10-19 1112: ---@return boolean
239fb915e6 2023-10-19 1113: ---@param c Card
239fb915e6 2023-10-19 1114: ---@param sum_type? integer
239fb915e6 2023-10-19 1115: function Card.IsSpecialSummonable(c,sum_type) end
239fb915e6 2023-10-19 1116: 
239fb915e6 2023-10-19 1117: ---检查是否可以以tuner作为调整,场上的卡[或mg]为同调素材对c进行同调召唤手续
239fb915e6 2023-10-19 1118: ---如果tuner是nil,此函数与Card.IsSpecialSummonable作用相同
239fb915e6 2023-10-19 1119: ---@return boolean
239fb915e6 2023-10-19 1120: ---@param c Card
239fb915e6 2023-10-19 1121: ---@param tuner Card|nil
239fb915e6 2023-10-19 1122: ---@param mg? Group
239fb915e6 2023-10-19 1123: function Card.IsSynchroSummonable(c,tuner,mg) end
239fb915e6 2023-10-19 1124: 
239fb915e6 2023-10-19 1125: ---检查是否可以在场上的卡[或mg][中选出 min-max 个XYZ素材]对c进行XYZ召唤手续
239fb915e6 2023-10-19 1126: ---如果mg为nil,此函数与 c:IsSpecialSummonable(SUMMON_TYPE_XYZ)作用相同
239fb915e6 2023-10-19 1127: ---@return boolean
239fb915e6 2023-10-19 1128: ---@param c Card
239fb915e6 2023-10-19 1129: ---@param mg Group|nil
239fb915e6 2023-10-19 1130: ---@param min? integer default: 0
239fb915e6 2023-10-19 1131: ---@param max? integer default: 0
239fb915e6 2023-10-19 1132: function Card.IsXyzSummonable(c,mg,min,max) end
239fb915e6 2023-10-19 1133: 
239fb915e6 2023-10-19 1134: ---检查是否可以在场上的卡[或mg][中选出 min-max 个连接素材]对c进行连接召唤手续
239fb915e6 2023-10-19 1135: ---如果mg为nil,此函数与 c:IsSpecialSummonable(SUMMON_TYPE_LINK)作用相同
239fb915e6 2023-10-19 1136: ---@return boolean
239fb915e6 2023-10-19 1137: ---@param c Card
239fb915e6 2023-10-19 1138: ---@param mg Group|nil
239fb915e6 2023-10-19 1139: ---@param min? integer default: 0
239fb915e6 2023-10-19 1140: ---@param max? integer default: 0
239fb915e6 2023-10-19 1141: function Card.IsLinkSummonable(c,mg,min,max) end
239fb915e6 2023-10-19 1142: 
239fb915e6 2023-10-19 1143: ---检查c是否可以进行通常召唤(不包含通常召唤的set),ignore_count=true则不检查召唤次数限制
239fb915e6 2023-10-19 1144: ---e~=nil则检查c是否可以以效果e进行通常召唤,min表示至少需要的祭品数(用于区分妥协召唤与上级召唤),zone 表示必须要召唤到的区域
239fb915e6 2023-10-19 1145: ---@return boolean
239fb915e6 2023-10-19 1146: ---@param c Card
239fb915e6 2023-10-19 1147: ---@param ignore_count boolean
239fb915e6 2023-10-19 1148: ---@param e Effect|nil
239fb915e6 2023-10-19 1149: ---@param min? integer default: 0
239fb915e6 2023-10-19 1150: ---@param zone? integer default: 0x1f
239fb915e6 2023-10-19 1151: function Card.IsSummonable(c,ignore_count,e,min,zone) end
239fb915e6 2023-10-19 1152: 
239fb915e6 2023-10-19 1153: ---检查c是否可进行通常召唤的set,ignore_count=true则不检查召唤次数限制
239fb915e6 2023-10-19 1154: ---e~=nil则检查c是否可以以效果e进行通常召唤的set,min表示至少需要的祭品数(用于区分妥协召唤set与上级召唤set),zone 表示必须要放置到的区域
239fb915e6 2023-10-19 1155: ---@return boolean
239fb915e6 2023-10-19 1156: ---@param c Card
239fb915e6 2023-10-19 1157: ---@param ignore_count boolean
239fb915e6 2023-10-19 1158: ---@param e Effect|nil
239fb915e6 2023-10-19 1159: ---@param min? integer default: 0
239fb915e6 2023-10-19 1160: ---@param zone? integer default: 0x1f
239fb915e6 2023-10-19 1161: function Card.IsMSetable(c,ignore_count,e,min,zone) end
239fb915e6 2023-10-19 1162: 
239fb915e6 2023-10-19 1163: ---检查c是否可以set到魔法陷阱区,ignore_field=true则无视魔陷区格子是否能使用的限制
239fb915e6 2023-10-19 1164: ---@return boolean
239fb915e6 2023-10-19 1165: ---@param c Card
239fb915e6 2023-10-19 1166: ---@param ignore_field? boolean default: false
239fb915e6 2023-10-19 1167: function Card.IsSSetable(c,ignore_field) end
239fb915e6 2023-10-19 1168: 
239fb915e6 2023-10-19 1169: ---检查c是否可以被玩家sumplayer用效果e[以sumtype方式和sumpos表示形式]特殊召唤[到玩家 toplayer 的区域zone]
239fb915e6 2023-10-19 1170: ---如果nocheck是true则不检查c的召唤条件,如果nolimit是true则不检查c的苏生限制
239fb915e6 2023-10-19 1171: ---@return boolean
239fb915e6 2023-10-19 1172: ---@param c Card
239fb915e6 2023-10-19 1173: ---@param e Effect
239fb915e6 2023-10-19 1174: ---@param sumtype integer
239fb915e6 2023-10-19 1175: ---@param sumplayer integer
239fb915e6 2023-10-19 1176: ---@param nocheck boolean
239fb915e6 2023-10-19 1177: ---@param nolimit boolean
239fb915e6 2023-10-19 1178: ---@param sumpos? integer default: POS_FACEUP
239fb915e6 2023-10-19 1179: ---@param toplayer? integer default: sumplayer
239fb915e6 2023-10-19 1180: ---@param zone? integer default: 0xff
239fb915e6 2023-10-19 1181: function Card.IsCanBeSpecialSummoned(c,e,sumtype,sumplayer,nocheck,nolimit,sumpos,toplayer,zone) end
239fb915e6 2023-10-19 1182: 
239fb915e6 2023-10-19 1183: ---检查c是否可以送去手卡
239fb915e6 2023-10-19 1184: ---注:仅当卡片或者玩家受到“不能加入手卡”的效果的影响时(如雷王)此函数才返回false
239fb915e6 2023-10-19 1185: ---##以下几个函数类似
239fb915e6 2023-10-19 1186: ---@return boolean
239fb915e6 2023-10-19 1187: ---@param c Card
239fb915e6 2023-10-19 1188: function Card.IsAbleToHand(c) end
239fb915e6 2023-10-19 1189: 
239fb915e6 2023-10-19 1190: ---检查c是否可以送去卡组
239fb915e6 2023-10-19 1191: ---@return boolean
239fb915e6 2023-10-19 1192: ---@param c Card
239fb915e6 2023-10-19 1193: function Card.IsAbleToDeck(c) end
239fb915e6 2023-10-19 1194: 
239fb915e6 2023-10-19 1195: ---检查c是否可以送去额外卡组
239fb915e6 2023-10-19 1196: ---对于非融合、同调等额外怪兽或者非灵摆怪兽此函数均返回false
239fb915e6 2023-10-19 1197: ---@return boolean
239fb915e6 2023-10-19 1198: ---@param c Card
239fb915e6 2023-10-19 1199: function Card.IsAbleToExtra(c) end
239fb915e6 2023-10-19 1200: 
239fb915e6 2023-10-19 1201: ---检查c是否可以送去墓地
239fb915e6 2023-10-19 1202: ---@return boolean
239fb915e6 2023-10-19 1203: ---@param c Card
239fb915e6 2023-10-19 1204: function Card.IsAbleToGrave(c) end
239fb915e6 2023-10-19 1205: 
239fb915e6 2023-10-19 1206: ---检查c是否可以被玩家player除外
239fb915e6 2023-10-19 1207: ---@return boolean
239fb915e6 2023-10-19 1208: ---@param c Card
239fb915e6 2023-10-19 1209: ---@param player? integer
239fb915e6 2023-10-19 1210: ---@param pos? integer
239fb915e6 2023-10-19 1211: ---@param reason? integer
239fb915e6 2023-10-19 1212: function Card.IsAbleToRemove(c,player,pos,reason) end
239fb915e6 2023-10-19 1213: 
239fb915e6 2023-10-19 1214: ---检查c是否可以作为cost送去手卡
239fb915e6 2023-10-19 1215: ---注:此函数会在Card.IsAbleToHand的基础上追加检测c的实际目的地
239fb915e6 2023-10-19 1216: ---当c送往手卡会被送去其它地方时(如缩退回路适用中,或者c是融合、同调 等额外怪兽的一种),此函数返回false
239fb915e6 2023-10-19 1217: ---##以下几个函数类似
239fb915e6 2023-10-19 1218: ---@return boolean
239fb915e6 2023-10-19 1219: ---@param c Card
239fb915e6 2023-10-19 1220: function Card.IsAbleToHandAsCost(c) end
239fb915e6 2023-10-19 1221: 
239fb915e6 2023-10-19 1222: ---检查c是否可以作为cost送去卡组
239fb915e6 2023-10-19 1223: ---@return boolean
239fb915e6 2023-10-19 1224: ---@param c Card
239fb915e6 2023-10-19 1225: function Card.IsAbleToDeckAsCost(c) end
239fb915e6 2023-10-19 1226: 
239fb915e6 2023-10-19 1227: ---检查c是否可以作为cost送去额外卡组,主卡组的灵摆卡会返回false
239fb915e6 2023-10-19 1228: ---@return boolean
239fb915e6 2023-10-19 1229: ---@param c Card
239fb915e6 2023-10-19 1230: function Card.IsAbleToExtraAsCost(c) end
239fb915e6 2023-10-19 1231: 
239fb915e6 2023-10-19 1232: ---检查c是否可以作为cost送去卡组或额外卡组(用于新宇侠、剑斗兽融合怪兽的召唤手续检测)等价于 (c:IsAbleToDeckAsCost() or c:IsAbleToExtraAsCost())
239fb915e6 2023-10-19 1233: ---@return boolean
239fb915e6 2023-10-19 1234: ---@param c Card
239fb915e6 2023-10-19 1235: function Card.IsAbleToDeckOrExtraAsCost(c) end
239fb915e6 2023-10-19 1236: 
239fb915e6 2023-10-19 1237: ---检查c是否可以作为cost送去墓地
239fb915e6 2023-10-19 1238: ---@return boolean
239fb915e6 2023-10-19 1239: ---@param c Card
239fb915e6 2023-10-19 1240: function Card.IsAbleToGraveAsCost(c) end
239fb915e6 2023-10-19 1241: 
239fb915e6 2023-10-19 1242: ---检查c是否可以作为cost除外
239fb915e6 2023-10-19 1243: ---@return boolean
239fb915e6 2023-10-19 1244: ---@param c Card
239fb915e6 2023-10-19 1245: function Card.IsAbleToRemoveAsCost(c) end
239fb915e6 2023-10-19 1246: 
239fb915e6 2023-10-19 1247: ---检查c是否可以被解放(非上级召唤用)
239fb915e6 2023-10-19 1248: ---@return boolean
239fb915e6 2023-10-19 1249: ---@param c Card
239fb915e6 2023-10-19 1250: function Card.IsReleasable(c) end
239fb915e6 2023-10-19 1251: 
239fb915e6 2023-10-19 1252: ---检查c是否可以被效果解放
239fb915e6 2023-10-19 1253: ---@return boolean
239fb915e6 2023-10-19 1254: ---@param c Card
239fb915e6 2023-10-19 1255: function Card.IsReleasableByEffect(c) end
239fb915e6 2023-10-19 1256: 
239fb915e6 2023-10-19 1257: ---检查c是否可以以reason原因丢弃
239fb915e6 2023-10-19 1258: ---注:此函数仅用于检测,
239fb915e6 2023-10-19 1259: ---以REASON_DISCARD作为原因把一张手卡送墓并不会导致那张卡不能丢弃
239fb915e6 2023-10-19 1260: ---@return boolean
239fb915e6 2023-10-19 1261: ---@param c Card
239fb915e6 2023-10-19 1262: ---@param reason? integer default: REASON_COST
239fb915e6 2023-10-19 1263: function Card.IsDiscardable(c,reason) end
239fb915e6 2023-10-19 1264: 
239fb915e6 2023-10-19 1265: ---检查c是否可以攻击
239fb915e6 2023-10-19 1266: ---@return boolean
239fb915e6 2023-10-19 1267: ---@param c Card
239fb915e6 2023-10-19 1268: function Card.IsAttackable(c) end
239fb915e6 2023-10-19 1269: 
239fb915e6 2023-10-19 1270: ---检查c是否可以连续攻击,c的攻击宣言次数>=ac则返回false
239fb915e6 2023-10-19 1271: ---monsteronly = true 则表示只能对怪兽攻击
239fb915e6 2023-10-19 1272: ---注:当c因为闪光之双剑等效果进行过多次攻击之后此函数返回false
239fb915e6 2023-10-19 1273: ---@return boolean
239fb915e6 2023-10-19 1274: ---@param c Card
239fb915e6 2023-10-19 1275: ---@param ac? integer
239fb915e6 2023-10-19 1276: ---@param monsteronly? boolean
239fb915e6 2023-10-19 1277: function Card.IsChainAttackable(c,ac,monsteronly) end
239fb915e6 2023-10-19 1278: 
239fb915e6 2023-10-19 1279: ---检查c是否是表侧表示
239fb915e6 2023-10-19 1280: ---@return boolean
239fb915e6 2023-10-19 1281: ---@param c Card
239fb915e6 2023-10-19 1282: function Card.IsFaceup(c) end
239fb915e6 2023-10-19 1283: 
239fb915e6 2023-10-19 1284: ---检查c是否是表侧表示,在手卡墓地主卡组等处始终返回true
239fb915e6 2023-10-19 1285: ---@return boolean
239fb915e6 2023-10-19 1286: ---@param c Card
239fb915e6 2023-10-19 1287: function Card.IsFaceupEx(c) end
239fb915e6 2023-10-19 1288: 
239fb915e6 2023-10-19 1289: ---检查c是否是攻击表示
239fb915e6 2023-10-19 1290: ---@return boolean
239fb915e6 2023-10-19 1291: ---@param c Card
239fb915e6 2023-10-19 1292: function Card.IsAttackPos(c) end
239fb915e6 2023-10-19 1293: 
239fb915e6 2023-10-19 1294: ---检查c是否是里侧表示
239fb915e6 2023-10-19 1295: ---@return boolean
239fb915e6 2023-10-19 1296: ---@param c Card
239fb915e6 2023-10-19 1297: function Card.IsFacedown(c) end
239fb915e6 2023-10-19 1298: 
239fb915e6 2023-10-19 1299: ---检查c是否是守备表示
239fb915e6 2023-10-19 1300: ---@return boolean
239fb915e6 2023-10-19 1301: ---@param c Card
239fb915e6 2023-10-19 1302: function Card.IsDefensePos(c) end
239fb915e6 2023-10-19 1303: 
239fb915e6 2023-10-19 1304: ---检查c是否是表示形式pos
239fb915e6 2023-10-19 1305: ---@return boolean
239fb915e6 2023-10-19 1306: ---@param c Card
239fb915e6 2023-10-19 1307: ---@param pos integer
239fb915e6 2023-10-19 1308: function Card.IsPosition(c,pos) end
239fb915e6 2023-10-19 1309: 
239fb915e6 2023-10-19 1310: ---检查c位置变化之前是否是表示形式pos
239fb915e6 2023-10-19 1311: ---@return boolean
239fb915e6 2023-10-19 1312: ---@param c Card
239fb915e6 2023-10-19 1313: ---@param pos integer
239fb915e6 2023-10-19 1314: function Card.IsPreviousPosition(c,pos) end
239fb915e6 2023-10-19 1315: 
239fb915e6 2023-10-19 1316: ---检查c的当前控制着是否是controler
239fb915e6 2023-10-19 1317: ---@return boolean
239fb915e6 2023-10-19 1318: ---@param c Card
239fb915e6 2023-10-19 1319: ---@param controler integer
239fb915e6 2023-10-19 1320: function Card.IsControler(c,controler) end
239fb915e6 2023-10-19 1321: 
239fb915e6 2023-10-19 1322: ---检查c的上一个控制者是否为player
239fb915e6 2023-10-19 1323: ---@return boolean
239fb915e6 2023-10-19 1324: ---@param c Card
239fb915e6 2023-10-19 1325: ---@param player integer
239fb915e6 2023-10-19 1326: function Card.IsPreviousControler(c,player) end
239fb915e6 2023-10-19 1327: 
239fb915e6 2023-10-19 1328: ---检查c是否在场
239fb915e6 2023-10-19 1329: ---注:当怪兽召唤,反转召唤,特殊召唤时召唤成功之前,此函数返回false
239fb915e6 2023-10-19 1330: ---@return boolean
239fb915e6 2023-10-19 1331: ---@param c Card
239fb915e6 2023-10-19 1332: function Card.IsOnField(c) end
239fb915e6 2023-10-19 1333: 
239fb915e6 2023-10-19 1334: ---检查c当前位置是否是location
239fb915e6 2023-10-19 1335: ---注:当怪兽召唤,反转召唤,特殊召唤时召唤成功之前,
239fb915e6 2023-10-19 1336: ---并且location=LOCATION_MZONE时,此函数返回false
239fb915e6 2023-10-19 1337: ---@return boolean
239fb915e6 2023-10-19 1338: ---@param c Card
239fb915e6 2023-10-19 1339: ---@param location integer
239fb915e6 2023-10-19 1340: function Card.IsLocation(c,location) end
239fb915e6 2023-10-19 1341: 
239fb915e6 2023-10-19 1342: ---检查c之前的位置是否是location
239fb915e6 2023-10-19 1343: ---@return boolean
239fb915e6 2023-10-19 1344: ---@param c Card
239fb915e6 2023-10-19 1345: ---@param location integer
239fb915e6 2023-10-19 1346: function Card.IsPreviousLocation(c,location) end
239fb915e6 2023-10-19 1347: 
239fb915e6 2023-10-19 1348: ---检查c是否是等级level以下(至少为1)
239fb915e6 2023-10-19 1349: ---@return boolean
239fb915e6 2023-10-19 1350: ---@param c Card
239fb915e6 2023-10-19 1351: ---@param level integer
239fb915e6 2023-10-19 1352: function Card.IsLevelBelow(c,level) end
239fb915e6 2023-10-19 1353: 
239fb915e6 2023-10-19 1354: ---检查c是否是等级level以上
239fb915e6 2023-10-19 1355: ---@return boolean
239fb915e6 2023-10-19 1356: ---@param c Card
239fb915e6 2023-10-19 1357: ---@param level integer
239fb915e6 2023-10-19 1358: function Card.IsLevelAbove(c,level) end
239fb915e6 2023-10-19 1359: 
239fb915e6 2023-10-19 1360: ---检查c是否是阶级rank以下(至少为1)
239fb915e6 2023-10-19 1361: ---@return boolean
239fb915e6 2023-10-19 1362: ---@param c Card
239fb915e6 2023-10-19 1363: ---@param rank integer
239fb915e6 2023-10-19 1364: function Card.IsRankBelow(c,rank) end
239fb915e6 2023-10-19 1365: 
239fb915e6 2023-10-19 1366: ---检查c是否是阶级rank以上
239fb915e6 2023-10-19 1367: ---@return boolean
239fb915e6 2023-10-19 1368: ---@param c Card
239fb915e6 2023-10-19 1369: ---@param rank integer
239fb915e6 2023-10-19 1370: function Card.IsRankAbove(c,rank) end
239fb915e6 2023-10-19 1371: 
239fb915e6 2023-10-19 1372: ---检查c是否连接标记数量是link以下(至少为1)
239fb915e6 2023-10-19 1373: ---@return boolean
239fb915e6 2023-10-19 1374: ---@param c Card
239fb915e6 2023-10-19 1375: ---@param link integer
239fb915e6 2023-10-19 1376: function Card.IsLinkBelow(c,link) end
239fb915e6 2023-10-19 1377: 
239fb915e6 2023-10-19 1378: ---检查c是否连接标记数量是link以上
239fb915e6 2023-10-19 1379: ---@return boolean
239fb915e6 2023-10-19 1380: ---@param c Card
239fb915e6 2023-10-19 1381: ---@param link integer
239fb915e6 2023-10-19 1382: function Card.IsLinkAbove(c,link) end
239fb915e6 2023-10-19 1383: 
239fb915e6 2023-10-19 1384: ---检查c是否是攻击力atk以下(至少为0)
239fb915e6 2023-10-19 1385: ---@return boolean
239fb915e6 2023-10-19 1386: ---@param c Card
239fb915e6 2023-10-19 1387: ---@param atk integer
239fb915e6 2023-10-19 1388: function Card.IsAttackBelow(c,atk) end
239fb915e6 2023-10-19 1389: 
239fb915e6 2023-10-19 1390: ---检查c是否是攻击力atk以上
239fb915e6 2023-10-19 1391: ---@return boolean
239fb915e6 2023-10-19 1392: ---@param c Card
239fb915e6 2023-10-19 1393: ---@param atk integer
239fb915e6 2023-10-19 1394: function Card.IsAttackAbove(c,atk) end
239fb915e6 2023-10-19 1395: 
239fb915e6 2023-10-19 1396: ---检查c是否是守备力def以下(至少为0)
239fb915e6 2023-10-19 1397: ---@return boolean
239fb915e6 2023-10-19 1398: ---@param c Card
239fb915e6 2023-10-19 1399: ---@param def integer
239fb915e6 2023-10-19 1400: function Card.IsDefenseBelow(c,def) end
239fb915e6 2023-10-19 1401: 
239fb915e6 2023-10-19 1402: ---检查c是否是守备力def以上
239fb915e6 2023-10-19 1403: ---@return boolean
239fb915e6 2023-10-19 1404: ---@param c Card
239fb915e6 2023-10-19 1405: ---@param def integer
239fb915e6 2023-10-19 1406: function Card.IsDefenseAbove(c,def) end
239fb915e6 2023-10-19 1407: 
239fb915e6 2023-10-19 1408: ---检查c是否处于公开状态
239fb915e6 2023-10-19 1409: ---@return boolean
239fb915e6 2023-10-19 1410: ---@param c Card
239fb915e6 2023-10-19 1411: function Card.IsPublic(c) end
239fb915e6 2023-10-19 1412: 
239fb915e6 2023-10-19 1413: ---检查c是否处于被宣言禁止状态
239fb915e6 2023-10-19 1414: ---@return boolean
239fb915e6 2023-10-19 1415: ---@param c Card
239fb915e6 2023-10-19 1416: function Card.IsForbidden(c) end
239fb915e6 2023-10-19 1417: 
239fb915e6 2023-10-19 1418: ---检查c是否可以改变控制权
239fb915e6 2023-10-19 1419: ---注:仅当卡收到了“不能改变控制权”的效果的影响时,此函数返回false
239fb915e6 2023-10-19 1420: ---@return boolean
239fb915e6 2023-10-19 1421: ---@param c Card
239fb915e6 2023-10-19 1422: function Card.IsAbleToChangeControler(c) end
239fb915e6 2023-10-19 1423: 
239fb915e6 2023-10-19 1424: ---检查c的控制权是否可以改变。
239fb915e6 2023-10-19 1425: ---ignore_mzone=true 会忽视转移控制权后的玩家场上是否有空格位, zone 表示必须要使用的位置
239fb915e6 2023-10-19 1426: ---@return boolean
239fb915e6 2023-10-19 1427: ---@param c Card
239fb915e6 2023-10-19 1428: ---@param ignore_mzone? boolean default: false
239fb915e6 2023-10-19 1429: ---@param zone? integer default: 0xff
239fb915e6 2023-10-19 1430: function Card.IsControlerCanBeChanged(c,ignore_mzone,zone) end
239fb915e6 2023-10-19 1431: 
239fb915e6 2023-10-19 1432: ---为c放置count个countertype类型的指示物,singly为true表示逐个添加至上限为止
239fb915e6 2023-10-19 1433: ---@return boolean
239fb915e6 2023-10-19 1434: ---@param c Card
239fb915e6 2023-10-19 1435: ---@param countertype integer
239fb915e6 2023-10-19 1436: ---@param count integer
239fb915e6 2023-10-19 1437: ---@param singly? integer default: false
239fb915e6 2023-10-19 1438: function Card.AddCounter(c,countertype,count,singly) end
239fb915e6 2023-10-19 1439: 
239fb915e6 2023-10-19 1440: ---让玩家player以原因reason移除c上的count个countertype类型的指示物, countertype=0 则清除c的所有指示物
239fb915e6 2023-10-19 1441: ---@param c Card
239fb915e6 2023-10-19 1442: ---@param player integer
239fb915e6 2023-10-19 1443: ---@param countertype integer
239fb915e6 2023-10-19 1444: ---@param count integer
239fb915e6 2023-10-19 1445: ---@param reason integer
239fb915e6 2023-10-19 1446: function Card.RemoveCounter(c,player,countertype,count,reason) end
239fb915e6 2023-10-19 1447: 
239fb915e6 2023-10-19 1448: ---返回c上的countertype类型的指示物的数量, countertype=0 则返回c上所有类型的指示物数量之和
239fb915e6 2023-10-19 1449: ---@return integer
239fb915e6 2023-10-19 1450: ---@param c Card
239fb915e6 2023-10-19 1451: ---@param countertype integer
239fb915e6 2023-10-19 1452: function Card.GetCounter(c,countertype) end
239fb915e6 2023-10-19 1453: 
239fb915e6 2023-10-19 1454: ---允许c[在位置location]放置那个需要“可以放置”才能放置的指示物countertype
239fb915e6 2023-10-19 1455: ---location的默认值与c的种类有关,灵摆怪兽需要指定能否在怪兽区域或灵摆区域放置指示物
239fb915e6 2023-10-19 1456: ---@param c Card
239fb915e6 2023-10-19 1457: ---@param countertype integer
239fb915e6 2023-10-19 1458: ---@param location? integer
239fb915e6 2023-10-19 1459: function Card.EnableCounterPermit(c,countertype,location) end
239fb915e6 2023-10-19 1460: 
239fb915e6 2023-10-19 1461: ---设定c放置countertype类型指示物的上限
239fb915e6 2023-10-19 1462: ---@param c Card
239fb915e6 2023-10-19 1463: ---@param countertype integer
239fb915e6 2023-10-19 1464: ---@param count integer
239fb915e6 2023-10-19 1465: function Card.SetCounterLimit(c,countertype,count) end
239fb915e6 2023-10-19 1466: 
239fb915e6 2023-10-19 1467: ---检查c是否可以用效果改变表示形式
239fb915e6 2023-10-19 1468: ---@return boolean
239fb915e6 2023-10-19 1469: ---@param c Card
239fb915e6 2023-10-19 1470: function Card.IsCanChangePosition(c) end
239fb915e6 2023-10-19 1471: 
239fb915e6 2023-10-19 1472: ---检查c是否可以转成里侧表示
239fb915e6 2023-10-19 1473: ---@return boolean
239fb915e6 2023-10-19 1474: ---@param c Card
239fb915e6 2023-10-19 1475: function Card.IsCanTurnSet(c) end
239fb915e6 2023-10-19 1476: 
239fb915e6 2023-10-19 1477: ---检查c是否可以[逐个(singly=true)在 location 区域]放置count个countertype类型的指示物
239fb915e6 2023-10-19 1478: ---@return boolean
239fb915e6 2023-10-19 1479: ---@param c Card
239fb915e6 2023-10-19 1480: ---@param countertype integer
239fb915e6 2023-10-19 1481: ---@param count integer
239fb915e6 2023-10-19 1482: ---@param singly? integer default: false
239fb915e6 2023-10-19 1483: ---@param location? integer
239fb915e6 2023-10-19 1484: function Card.IsCanAddCounter(c,countertype,count,singly,location) end
239fb915e6 2023-10-19 1485: 
239fb915e6 2023-10-19 1486: ---检查玩家player是否可以以原因reason移除c上的count个countertype类型的指示物
239fb915e6 2023-10-19 1487: ---@return boolean
239fb915e6 2023-10-19 1488: ---@param c Card
239fb915e6 2023-10-19 1489: ---@param player integer
239fb915e6 2023-10-19 1490: ---@param countertype integer
239fb915e6 2023-10-19 1491: ---@param count integer
239fb915e6 2023-10-19 1492: ---@param reason integer
239fb915e6 2023-10-19 1493: function Card.IsCanRemoveCounter(c,player,countertype,count,reason) end
239fb915e6 2023-10-19 1494: 
239fb915e6 2023-10-19 1495: ---检查c上是否可以放置countertype类型的指示物
239fb915e6 2023-10-19 1496: ---@return boolean
239fb915e6 2023-10-19 1497: ---@param c Card
239fb915e6 2023-10-19 1498: ---@param countertype integer
239fb915e6 2023-10-19 1499: function Card.IsCanHaveCounter(c,countertype) end
239fb915e6 2023-10-19 1500: 
239fb915e6 2023-10-19 1501: ---检查c是否可以作为XYZ素材
239fb915e6 2023-10-19 1502: ---@return boolean
239fb915e6 2023-10-19 1503: ---@param c Card
239fb915e6 2023-10-19 1504: ---@param player? integer
239fb915e6 2023-10-19 1505: function Card.IsCanOverlay(c,player) end
239fb915e6 2023-10-19 1506: 
239fb915e6 2023-10-19 1507: ---检查c是否可以成为[融合怪兽fc的]融合素材
239fb915e6 2023-10-19 1508: ---@return boolean
239fb915e6 2023-10-19 1509: ---@param c Card
239fb915e6 2023-10-19 1510: ---@param fc? Card
239fb915e6 2023-10-19 1511: function Card.IsCanBeFusionMaterial(c,fc) end
239fb915e6 2023-10-19 1512: 
239fb915e6 2023-10-19 1513: ---检查c是否可以成为[以 tuner 为调整的同调怪兽sc的]同调素材
239fb915e6 2023-10-19 1514: ---@return boolean
239fb915e6 2023-10-19 1515: ---@param c Card
239fb915e6 2023-10-19 1516: ---@param sc? Card
239fb915e6 2023-10-19 1517: ---@param tuner? Card
239fb915e6 2023-10-19 1518: function Card.IsCanBeSynchroMaterial(c,sc,tuner) end
239fb915e6 2023-10-19 1519: 
239fb915e6 2023-10-19 1520: ---检查c是否可以作为[仪式怪兽sc的]仪式素材,没有指定sc的场合,必须填nil
239fb915e6 2023-10-19 1521: ---@return boolean
239fb915e6 2023-10-19 1522: ---@param c Card
239fb915e6 2023-10-19 1523: ---@param sc Card|nil
239fb915e6 2023-10-19 1524: function Card.IsCanBeRitualMaterial(c,sc) end
239fb915e6 2023-10-19 1525: 
239fb915e6 2023-10-19 1526: ---检查c是否可以成为[XYZ怪兽sc的]XYZ素材,没有指定sc的场合,必须填nil
239fb915e6 2023-10-19 1527: ---@return boolean
239fb915e6 2023-10-19 1528: ---@param c Card
239fb915e6 2023-10-19 1529: ---@param sc Card|nil
239fb915e6 2023-10-19 1530: function Card.IsCanBeXyzMaterial(c,sc) end
239fb915e6 2023-10-19 1531: 
239fb915e6 2023-10-19 1532: ---检查c是否可以成为[连接怪兽sc的]连接素材,没有指定sc的场合,必须填nil
239fb915e6 2023-10-19 1533: ---@return boolean
239fb915e6 2023-10-19 1534: ---@param c Card
239fb915e6 2023-10-19 1535: ---@param sc Card|nil
239fb915e6 2023-10-19 1536: function Card.IsCanBeLinkMaterial(c,sc) end
239fb915e6 2023-10-19 1537: 
239fb915e6 2023-10-19 1538: ---检查场上[或g]是否包含了c需要[必须包含gc在内]的一组融合素材
239fb915e6 2023-10-19 1539: ---##根据c的种类为EFFECT_FUSION_MATERIAL的效果的Condition函数检查
239fb915e6 2023-10-19 1540: ---@return boolean
239fb915e6 2023-10-19 1541: ---@param c Card
239fb915e6 2023-10-19 1542: ---@param g? Group|nil
239fb915e6 2023-10-19 1543: ---@param gc? Card|nil
239fb915e6 2023-10-19 1544: ---@param chkf? integer default: PLAYER_NONE
239fb915e6 2023-10-19 1545: ---@param not_material? boolean default: false
239fb915e6 2023-10-19 1546: function Card.CheckFusionMaterial(c,g,gc,chkf,not_material) end
239fb915e6 2023-10-19 1547: 
239fb915e6 2023-10-19 1548: ---检查c能否代替融合怪兽fc的记述卡名的素材
239fb915e6 2023-10-19 1549: ---@return boolean
239fb915e6 2023-10-19 1550: ---@param c Card
239fb915e6 2023-10-19 1551: ---@param fc Card
239fb915e6 2023-10-19 1552: function Card.CheckFusionSubstitute(c,fc) end
239fb915e6 2023-10-19 1553: 
239fb915e6 2023-10-19 1554: ---检查c是否免疫效果e(即不受效果e的影响)
239fb915e6 2023-10-19 1555: ---@return boolean
239fb915e6 2023-10-19 1556: ---@param c Card
239fb915e6 2023-10-19 1557: ---@param e Effect
239fb915e6 2023-10-19 1558: function Card.IsImmuneToEffect(c,e) end
239fb915e6 2023-10-19 1559: 
239fb915e6 2023-10-19 1560: ---检查c的效果是否能被e无效。
239fb915e6 2023-10-19 1561: ---已经被无效的卡,或原本就没有效果的卡,或不受e影响的卡不能被无效。
239fb915e6 2023-10-19 1562: ---第三个参数可选,指示其是否为怪兽效果。
239fb915e6 2023-10-19 1563: ---@return boolean
239fb915e6 2023-10-19 1564: ---@param c Card
239fb915e6 2023-10-19 1565: ---@param e Effect
239fb915e6 2023-10-19 1566: ---@param isMonsterEffect? boolean
239fb915e6 2023-10-19 1567: function Card.IsCanBeDisabledByEffect(c,e,isMonsterEffect) end
239fb915e6 2023-10-19 1568: 
239fb915e6 2023-10-19 1569: ---检查c是否可以成为效果[e的]对象
239fb915e6 2023-10-19 1570: ---@return boolean
239fb915e6 2023-10-19 1571: ---@param c Card
239fb915e6 2023-10-19 1572: ---@param e? Effect
239fb915e6 2023-10-19 1573: function Card.IsCanBeEffectTarget(c,e) end
239fb915e6 2023-10-19 1574: 
239fb915e6 2023-10-19 1575: ---检查c1是否可以成为c2的攻击目标
239fb915e6 2023-10-19 1576: ---@return boolean
239fb915e6 2023-10-19 1577: ---@param c1 Card
239fb915e6 2023-10-19 1578: ---@param c2 Card
239fb915e6 2023-10-19 1579: function Card.IsCanBeBattleTarget(c1,c2) end
239fb915e6 2023-10-19 1580: 
239fb915e6 2023-10-19 1581: ---为魔陷卡c添加怪兽数值,type 为怪兽类型,不能是没有等级的怪兽
239fb915e6 2023-10-19 1582: ---注:在数据库中有记录的数值视为原本数值
239fb915e6 2023-10-19 1583: ---@param c Card
239fb915e6 2023-10-19 1584: ---@param type integer
239fb915e6 2023-10-19 1585: ---@param attribute? integer
239fb915e6 2023-10-19 1586: ---@param race? integer
239fb915e6 2023-10-19 1587: ---@param level? integer
239fb915e6 2023-10-19 1588: ---@param atk? integer
239fb915e6 2023-10-19 1589: ---@param def? integer
239fb915e6 2023-10-19 1590: function Card.AddMonsterAttribute(c,type,attribute,race,level,atk,def) end
239fb915e6 2023-10-19 1591: 
239fb915e6 2023-10-19 1592: ---取消送墓确定状态,cancel=false则重新设置送墓确定状态
239fb915e6 2023-10-19 1593: ---注:送墓确定状态指的是在场上发动的不留场的魔法和陷阱后,这些卡片的状态
239fb915e6 2023-10-19 1594: ---送墓确定状态中的卡无法返回手卡和卡组,并且连锁结束时送去墓地
239fb915e6 2023-10-19 1595: ---此函数的作用是取消此状态使其留场,用于光之护封剑和废铁稻草人等卡
239fb915e6 2023-10-19 1596: ---@param c Card
239fb915e6 2023-10-19 1597: ---@param cancel? boolean default: true
239fb915e6 2023-10-19 1598: function Card.CancelToGrave(c,cancel) end
239fb915e6 2023-10-19 1599: 
239fb915e6 2023-10-19 1600: ---返回通常召唤c所需要的祭品的最小和最大数量
239fb915e6 2023-10-19 1601: ---@return integer
239fb915e6 2023-10-19 1602: ---@return integer
239fb915e6 2023-10-19 1603: ---@param c Card
239fb915e6 2023-10-19 1604: function Card.GetTributeRequirement(c) end
239fb915e6 2023-10-19 1605: 
239fb915e6 2023-10-19 1606: ---返回与c进行战斗的卡,没有则返回nil
239fb915e6 2023-10-19 1607: ---@return Card
239fb915e6 2023-10-19 1608: ---@param c Card
239fb915e6 2023-10-19 1609: function Card.GetBattleTarget(c) end
239fb915e6 2023-10-19 1610: 
239fb915e6 2023-10-19 1611: ---返回c可攻击的卡片组以及能否直接攻击
239fb915e6 2023-10-19 1612: ---@return Group
239fb915e6 2023-10-19 1613: ---@return boolean
239fb915e6 2023-10-19 1614: ---@param c Card
239fb915e6 2023-10-19 1615: function Card.GetAttackableTarget(c) end
239fb915e6 2023-10-19 1616: 
239fb915e6 2023-10-19 1617: ---为c设置类型为type的卡片提示信息
239fb915e6 2023-10-19 1618: ---type只能为以下值,对应的value类型为
239fb915e6 2023-10-19 1619: ---CHINT_TURN              回合数
239fb915e6 2023-10-19 1620: ---CHINT_CARD              卡片id
239fb915e6 2023-10-19 1621: ---CHINT_RACE              种族
239fb915e6 2023-10-19 1622: ---CHINT_ATTRIBUTE         属性
239fb915e6 2023-10-19 1623: ---CHINT_NUMBER            数字
239fb915e6 2023-10-19 1624: ---CHINT_DESC              描述
239fb915e6 2023-10-19 1625: ---@param c Card
239fb915e6 2023-10-19 1626: ---@param type integer
239fb915e6 2023-10-19 1627: ---@param value integer
239fb915e6 2023-10-19 1628: function Card.SetHint(c,type,value) end
239fb915e6 2023-10-19 1629: 
239fb915e6 2023-10-19 1630: ---设置c在卡组中正面表示(POS_FACEUP_DEFENSE)
239fb915e6 2023-10-19 1631: ---@param c Card
239fb915e6 2023-10-19 1632: function Card.ReverseInDeck(c) end
239fb915e6 2023-10-19 1633: 
239fb915e6 2023-10-19 1634: ---设置c以unique_code只能在场上[或怪兽区域或魔陷区域,由unique_location决定]只能存在1张,function 的返回值类型必须是int
239fb915e6 2023-10-19 1635: ---s不为0会检查自己场上的唯一性,o不为0则检查对方场上的唯一性
239fb915e6 2023-10-19 1636: ---@param c Card
239fb915e6 2023-10-19 1637: ---@param s integer
239fb915e6 2023-10-19 1638: ---@param o integer
239fb915e6 2023-10-19 1639: ---@param unique_code function|integer
239fb915e6 2023-10-19 1640: ---@param unique_location? integer default: LOCATIOIN_ONFIELD
239fb915e6 2023-10-19 1641: function Card.SetUniqueOnField(c,s,o,unique_code,unique_location) end
239fb915e6 2023-10-19 1642: 
239fb915e6 2023-10-19 1643: ---检查c在check_player场上的唯一性
239fb915e6 2023-10-19 1644: ---@return boolean
239fb915e6 2023-10-19 1645: ---@param c Card
239fb915e6 2023-10-19 1646: ---@param check_player integer
239fb915e6 2023-10-19 1647: ---@param check_location? integer default: LOCATION_ONFIELD
239fb915e6 2023-10-19 1648: ---@param icard? Card|nil
239fb915e6 2023-10-19 1649: function Card.CheckUniqueOnField(c,check_player,check_location,icard) end
239fb915e6 2023-10-19 1650: 
239fb915e6 2023-10-19 1651: ---重置c受到的卡号为code1[, code2...]的卡片的效果的影响
239fb915e6 2023-10-19 1652: ---@param c Card
239fb915e6 2023-10-19 1653: ---@param code1? integer
239fb915e6 2023-10-19 1654: ---@param ...? any
239fb915e6 2023-10-19 1655: function Card.ResetNegateEffect(c,code1,...) end
239fb915e6 2023-10-19 1656: 
239fb915e6 2023-10-19 1657: ---把c的assume_type的数值当作assume_value使用(基因组斗士)
239fb915e6 2023-10-19 1658: ---@param c Card
239fb915e6 2023-10-19 1659: ---@param assume_type integer
239fb915e6 2023-10-19 1660: ---@param assume_value integer
239fb915e6 2023-10-19 1661: function Card.AssumeProperty(c,assume_type,assume_value) end
239fb915e6 2023-10-19 1662: 
239fb915e6 2023-10-19 1663: ---设置c一回合只能进行1次特殊召唤(灵兽,波动龙)
239fb915e6 2023-10-19 1664: ---相同的spsummon_code共用1个次数
239fb915e6 2023-10-19 1665: ---@param c Card
239fb915e6 2023-10-19 1666: ---@param spsummon_code integer
239fb915e6 2023-10-19 1667: function Card.SetSPSummonOnce(c,spsummon_code) end
239fb915e6 2023-10-19 1668: 
239fb915e6 2023-10-19 1669: ---设置全局标记global_flag
239fb915e6 2023-10-19 1670: ---@param global_flag integer
239fb915e6 2023-10-19 1671: function Duel.EnableGlobalFlag(global_flag) end
239fb915e6 2023-10-19 1672: 
239fb915e6 2023-10-19 1673: ---返回玩家player的当前LP
239fb915e6 2023-10-19 1674: ---@return integer
239fb915e6 2023-10-19 1675: ---@param player integer
239fb915e6 2023-10-19 1676: function Duel.GetLP(player) end
239fb915e6 2023-10-19 1677: 
239fb915e6 2023-10-19 1678: ---设置玩家player的当前LP为lp
239fb915e6 2023-10-19 1679: ---@param player integer
239fb915e6 2023-10-19 1680: ---@param lp integer
239fb915e6 2023-10-19 1681: function Duel.SetLP(player,lp) end
239fb915e6 2023-10-19 1682: 
239fb915e6 2023-10-19 1683: ---返回当前的回合玩家
239fb915e6 2023-10-19 1684: ---@return integer
239fb915e6 2023-10-19 1685: function Duel.GetTurnPlayer() end
239fb915e6 2023-10-19 1686: 
239fb915e6 2023-10-19 1687: ---返回[player所经过的]当前的回合数
239fb915e6 2023-10-19 1688: ---@return integer
239fb915e6 2023-10-19 1689: ---@param player? integer
239fb915e6 2023-10-19 1690: function Duel.GetTurnCount(player) end
239fb915e6 2023-10-19 1691: 
239fb915e6 2023-10-19 1692: ---返回玩家player每回合的规则抽卡数量
239fb915e6 2023-10-19 1693: ---@return integer
239fb915e6 2023-10-19 1694: ---@param player integer
239fb915e6 2023-10-19 1695: function Duel.GetDrawCount(player) end
239fb915e6 2023-10-19 1696: 
239fb915e6 2023-10-19 1697: ---把效果e作为玩家player的效果注册给全局环境
239fb915e6 2023-10-19 1698: ---@param e Effect
239fb915e6 2023-10-19 1699: ---@param player integer
239fb915e6 2023-10-19 1700: function Duel.RegisterEffect(e,player) end
239fb915e6 2023-10-19 1701: 
239fb915e6 2023-10-19 1702: ---为玩家player注册全局环境下的标识效果,并返回这个效果
239fb915e6 2023-10-19 1703: ---此效果总是影响玩家的(EFFECT_FLAG_PLAYER_TARGET)并且不会被无效化
239fb915e6 2023-10-19 1704: ---其余部分与Card.RegisterFlagEffect相同
239fb915e6 2023-10-19 1705: ---@return Effect
239fb915e6 2023-10-19 1706: ---@param player integer
239fb915e6 2023-10-19 1707: ---@param code integer
239fb915e6 2023-10-19 1708: ---@param reset_flag integer
239fb915e6 2023-10-19 1709: ---@param property integer
239fb915e6 2023-10-19 1710: ---@param reset_count integer default: 1
239fb915e6 2023-10-19 1711: ---@param label? integer
239fb915e6 2023-10-19 1712: function Duel.RegisterFlagEffect(player,code,reset_flag,property,reset_count,label) end
239fb915e6 2023-10-19 1713: 
239fb915e6 2023-10-19 1714: ---返回玩家 player 的 code 标识效果的数量
239fb915e6 2023-10-19 1715: ---@return integer
239fb915e6 2023-10-19 1716: ---@param player integer
239fb915e6 2023-10-19 1717: ---@param code integer
239fb915e6 2023-10-19 1718: function Duel.GetFlagEffect(player,code) end
239fb915e6 2023-10-19 1719: 
239fb915e6 2023-10-19 1720: ---手动reset玩家player的 code 标识效果
239fb915e6 2023-10-19 1721: ---@param player integer
239fb915e6 2023-10-19 1722: ---@param code integer
239fb915e6 2023-10-19 1723: function Duel.ResetFlagEffect(player,code) end
239fb915e6 2023-10-19 1724: 
239fb915e6 2023-10-19 1725: ---返回player是否存在种类为code的标识效果,并设置其Label属性为label
239fb915e6 2023-10-19 1726: ---@return boolean
239fb915e6 2023-10-19 1727: ---@param player integer
239fb915e6 2023-10-19 1728: ---@param code integer
239fb915e6 2023-10-19 1729: ---@param label integer
239fb915e6 2023-10-19 1730: function Duel.SetFlagEffectLabel(player,code,label) end
239fb915e6 2023-10-19 1731: 
239fb915e6 2023-10-19 1732: ---返回玩家player的种类为code的标识效果的Label,没有此效果则返回nil
239fb915e6 2023-10-19 1733: ---@return integer
239fb915e6 2023-10-19 1734: ---@param player integer
239fb915e6 2023-10-19 1735: ---@param code integer
239fb915e6 2023-10-19 1736: function Duel.GetFlagEffectLabel(player,code) end
239fb915e6 2023-10-19 1737: 
239fb915e6 2023-10-19 1738: ---以reason原因破坏targets去dest,返回值是实际被破坏的数量
239fb915e6 2023-10-19 1739: ---如果reason包含REASON_RULE,则破坏事件将不会检查卡片是否免疫效果,
239fb915e6 2023-10-19 1740: ---不会触发代破效果并且无视“不能破坏”
239fb915e6 2023-10-19 1741: ---如果设置reason_player,则视为被玩家reason_player移动
239fb915e6 2023-10-19 1742: ---@return integer
239fb915e6 2023-10-19 1743: ---@param targets Card|Group
239fb915e6 2023-10-19 1744: ---@param reason integer
239fb915e6 2023-10-19 1745: ---@param dest? integer
239fb915e6 2023-10-19 1746: ---@param reason_player? integer
239fb915e6 2023-10-19 1747: function Duel.Destroy(targets,reason,dest,reason_player) end
239fb915e6 2023-10-19 1748: 
239fb915e6 2023-10-19 1749: ---以reason原因,pos表示形式除外targets,返回值是实际被操作的数量
239fb915e6 2023-10-19 1750: ---如果reason包含REASON_TEMPORARY,那么视为是暂时除外,可以通过Duel.ReturnToField返回到场上
239fb915e6 2023-10-19 1751: ---如果设置reason_player,则视为被玩家reason_player移动
239fb915e6 2023-10-19 1752: ---@return integer
239fb915e6 2023-10-19 1753: ---@param targets Card|Group
239fb915e6 2023-10-19 1754: ---@param pos integer
239fb915e6 2023-10-19 1755: ---@param reason integer
239fb915e6 2023-10-19 1756: ---@param reason_player? integer
239fb915e6 2023-10-19 1757: function Duel.Remove(targets,pos,reason,reason_player) end
239fb915e6 2023-10-19 1758: 
239fb915e6 2023-10-19 1759: ---以reason原因把targets送去墓地,返回值是实际被操作的数量
239fb915e6 2023-10-19 1760: ---如果设置reason_player,则视为被玩家reason_player移动
239fb915e6 2023-10-19 1761: ---@return integer
239fb915e6 2023-10-19 1762: ---@param targets Card|Group
239fb915e6 2023-10-19 1763: ---@param reason integer
239fb915e6 2023-10-19 1764: ---@param reason_player? integer
239fb915e6 2023-10-19 1765: function Duel.SendtoGrave(targets,reason,reason_player) end
239fb915e6 2023-10-19 1766: 
239fb915e6 2023-10-19 1767: ---以reason原因把targets送去玩家player的手卡,返回值是实际被操作的数量
239fb915e6 2023-10-19 1768: ---如果player是nil则返回卡的持有者的手卡
239fb915e6 2023-10-19 1769: ---如果设置reason_player,则视为被玩家reason_player移动
239fb915e6 2023-10-19 1770: ---@return integer
239fb915e6 2023-10-19 1771: ---@param targets Card|Group
239fb915e6 2023-10-19 1772: ---@param player integer|nil
239fb915e6 2023-10-19 1773: ---@param reason integer
239fb915e6 2023-10-19 1774: ---@param reason_player? integer
239fb915e6 2023-10-19 1775: function Duel.SendtoHand(targets,player,reason,reason_player) end
239fb915e6 2023-10-19 1776: 
239fb915e6 2023-10-19 1777: ---以reason原因把targets送去玩家player的卡组,返回值是实际被操作的数量
239fb915e6 2023-10-19 1778: ---如果player是nil则返回卡的持有者的卡组
239fb915e6 2023-10-19 1779: ---如果seq=0,则是返回卡组最顶端;seq=1则是返回卡组最底端;
239fb915e6 2023-10-19 1780: ---其余情况则是返回最顶端并且标记需要洗卡组
239fb915e6 2023-10-19 1781: ---如果设置reason_player,则视为被玩家reason_player移动
239fb915e6 2023-10-19 1782: ---@return integer
239fb915e6 2023-10-19 1783: ---@param targets Card|Group
239fb915e6 2023-10-19 1784: ---@param player integer|nil
239fb915e6 2023-10-19 1785: ---@param seq integer
239fb915e6 2023-10-19 1786: ---@param reason integer
239fb915e6 2023-10-19 1787: ---@param reason_player? integer
239fb915e6 2023-10-19 1788: function Duel.SendtoDeck(targets,player,seq,reason,reason_player) end
239fb915e6 2023-10-19 1789: 
239fb915e6 2023-10-19 1790: ---以reason原因把灵摆卡targets表侧表示送去玩家player的额外卡组,返回值是实际被操作的数量
239fb915e6 2023-10-19 1791: ---如果player是nil则返回卡的持有者的额外卡组
239fb915e6 2023-10-19 1792: ---@return integer
239fb915e6 2023-10-19 1793: ---@param targets Card|Group
239fb915e6 2023-10-19 1794: ---@param player integer|nil
239fb915e6 2023-10-19 1795: ---@param reason integer
239fb915e6 2023-10-19 1796: function Duel.SendtoExtraP(targets,player,reason) end
239fb915e6 2023-10-19 1797: 
239fb915e6 2023-10-19 1798: ---此函数返回之前一次卡片操作实际操作的卡片组。包括
239fb915e6 2023-10-19 1799: ---Duel.Destroy, Duel.Remove, Duel.SendtoGrave, 
239fb915e6 2023-10-19 1800: ---Duel.SendtoHand, Duel.SendtoDeck, Duel.SendtoExtraP, Duel.Release, 
239fb915e6 2023-10-19 1801: ---Duel.ChangePosition, Duel.SpecialSummon, Duel.DiscardDeck
239fb915e6 2023-10-19 1802: ---@return Group
239fb915e6 2023-10-19 1803: function Duel.GetOperatedGroup() end
239fb915e6 2023-10-19 1804: 
239fb915e6 2023-10-19 1805: ---让玩家 player 以效果e对c[在区域 zone]进行通常召唤(非set),至少使用min个祭品
239fb915e6 2023-10-19 1806: ---如果e=nil,那么就按照一般的通常召唤规则进行通常召唤
239fb915e6 2023-10-19 1807: ---如果ignore_count=true,则忽略每回合的通常召唤次数限制
239fb915e6 2023-10-19 1808: ---@param player integer
239fb915e6 2023-10-19 1809: ---@param c Card
239fb915e6 2023-10-19 1810: ---@param ignore_count boolean
239fb915e6 2023-10-19 1811: ---@param e Effect|nil
239fb915e6 2023-10-19 1812: ---@param min? integer default: 0
239fb915e6 2023-10-19 1813: ---@param zone? integer default: 0x1f
239fb915e6 2023-10-19 1814: function Duel.Summon(player,c,ignore_count,e,min,zone) end
239fb915e6 2023-10-19 1815: 
239fb915e6 2023-10-19 1816: ---让玩家player对c[用 sumtype 方式]进行特殊召唤手续(?)
239fb915e6 2023-10-19 1817: ---@param player integer
239fb915e6 2023-10-19 1818: ---@param c Card
239fb915e6 2023-10-19 1819: ---@param sumtype? integer default: 0
239fb915e6 2023-10-19 1820: function Duel.SpecialSummonRule(player,c,sumtype) end
239fb915e6 2023-10-19 1821: 
239fb915e6 2023-10-19 1822: ---让玩家player以tuner作为调整,场上的卡[或mg]为素材,对c进行同调召唤手续
239fb915e6 2023-10-19 1823: ---@param player integer
239fb915e6 2023-10-19 1824: ---@param c Card
239fb915e6 2023-10-19 1825: ---@param tuner Card|nil
239fb915e6 2023-10-19 1826: ---@param mg? Group|nil
239fb915e6 2023-10-19 1827: ---@param minc? integer default: 0
239fb915e6 2023-10-19 1828: ---@param maxc? integer default: 0
239fb915e6 2023-10-19 1829: function Duel.SynchroSummon(player,c,tuner,mg,minc,maxc) end
239fb915e6 2023-10-19 1830: 
239fb915e6 2023-10-19 1831: ---让玩家player用场上的卡[或mg][选min-max个素材]对c进行XYZ召唤手续
239fb915e6 2023-10-19 1832: ---mg非空且min为0则直接把mg全部作为XYZ素材
239fb915e6 2023-10-19 1833: ---@param player integer
239fb915e6 2023-10-19 1834: ---@param c Card
239fb915e6 2023-10-19 1835: ---@param mg Group|nil
239fb915e6 2023-10-19 1836: ---@param min? integer default: 0
239fb915e6 2023-10-19 1837: ---@param max? integer default: 0
239fb915e6 2023-10-19 1838: function Duel.XyzSummon(player,c,mg,min,max) end
239fb915e6 2023-10-19 1839: 
239fb915e6 2023-10-19 1840: ---让玩家player以mg[中除lcard以外的最少minc,最多maxc张卡]为素材将pcard连接召唤。
239fb915e6 2023-10-19 1841: ---@param player integer
239fb915e6 2023-10-19 1842: ---@param pcard Card
239fb915e6 2023-10-19 1843: ---@param mg Group|nil
239fb915e6 2023-10-19 1844: ---@param lcard? Card
239fb915e6 2023-10-19 1845: ---@param minc? integer
239fb915e6 2023-10-19 1846: ---@param maxc? integer
239fb915e6 2023-10-19 1847: function Duel.LinkSummon(player,pcard,mg,lcard,minc,maxc) end
239fb915e6 2023-10-19 1848: 
239fb915e6 2023-10-19 1849: ---让玩家 player 以效果e对c[在区域 zone]进行通常召唤的Set,至少使用min个祭品
239fb915e6 2023-10-19 1850: ---如果e=nil,那么就按照一般的通常召唤规则进行通常召唤
239fb915e6 2023-10-19 1851: ---如果ignore_count=true,则忽略每回合的通常召唤次数限制
239fb915e6 2023-10-19 1852: ---@param player integer
239fb915e6 2023-10-19 1853: ---@param c Card
239fb915e6 2023-10-19 1854: ---@param ignore_count boolean
239fb915e6 2023-10-19 1855: ---@param e Effect|nil
239fb915e6 2023-10-19 1856: ---@param min? integer default: 0
239fb915e6 2023-10-19 1857: ---@param zone? integer default: 0x1f
239fb915e6 2023-10-19 1858: function Duel.MSet(player,c,ignore_count,e,min,zone) end
239fb915e6 2023-10-19 1859: 
239fb915e6 2023-10-19 1860: ---让玩家player把targets盖放到target_player的魔法陷阱区, confirm 表示是否需要确认
239fb915e6 2023-10-19 1861: ---若targets为Group,则返回成功操作的数量
239fb915e6 2023-10-19 1862: ---@return integer
239fb915e6 2023-10-19 1863: ---@param player integer
239fb915e6 2023-10-19 1864: ---@param targets Card|Group
239fb915e6 2023-10-19 1865: ---@param target_player? integer default: player
239fb915e6 2023-10-19 1866: ---@param confirm? boolean default: true
239fb915e6 2023-10-19 1867: function Duel.SSet(player,targets,target_player,confirm) end
239fb915e6 2023-10-19 1868: 
239fb915e6 2023-10-19 1869: ---根据code新建一个衍生物并返回,该衍生物的拥有者为player
239fb915e6 2023-10-19 1870: ---@return Card
239fb915e6 2023-10-19 1871: ---@param player integer
239fb915e6 2023-10-19 1872: ---@param code integer
239fb915e6 2023-10-19 1873: function Duel.CreateToken(player,code) end
239fb915e6 2023-10-19 1874: 
239fb915e6 2023-10-19 1875: ---让玩家 sumplayer 以sumtype方式,pos表示形式把targets特殊召唤到target_player场上[的区域 zone]
239fb915e6 2023-10-19 1876: ---如果nocheck为true则无视卡的召唤条件,如果nolimit为true则无视卡的苏生限制
239fb915e6 2023-10-19 1877: ---返回值是特殊召唤成功的卡的数量
239fb915e6 2023-10-19 1878: ---@return integer
239fb915e6 2023-10-19 1879: ---@param targets Card|Group
239fb915e6 2023-10-19 1880: ---@param sumtype integer
239fb915e6 2023-10-19 1881: ---@param sumplayer integer
239fb915e6 2023-10-19 1882: ---@param target_player integer
239fb915e6 2023-10-19 1883: ---@param nocheck boolean
239fb915e6 2023-10-19 1884: ---@param nolimit boolean
239fb915e6 2023-10-19 1885: ---@param pos integer
239fb915e6 2023-10-19 1886: ---@param zone? integer default: 0xff
239fb915e6 2023-10-19 1887: function Duel.SpecialSummon(targets,sumtype,sumplayer,target_player,nocheck,nolimit,pos,zone) end
239fb915e6 2023-10-19 1888: 
239fb915e6 2023-10-19 1889: ---此函数是Duel.SpecialSummon的分解过程,只特殊召唤一张卡c ,其他参数用法和 Duel.SpecialSummon 一样
239fb915e6 2023-10-19 1890: ---此函数用于一个效果同时特殊召唤多张参数不同的卡
239fb915e6 2023-10-19 1891: ---此函数必须和Duel.SpecialSummonComplete一起使用
239fb915e6 2023-10-19 1892: ---返回值表示是否特殊召唤成功
239fb915e6 2023-10-19 1893: ---@return boolean
239fb915e6 2023-10-19 1894: ---@param c Card
239fb915e6 2023-10-19 1895: ---@param sumtype integer
239fb915e6 2023-10-19 1896: ---@param sumplayer integer
239fb915e6 2023-10-19 1897: ---@param target_player integer
239fb915e6 2023-10-19 1898: ---@param nocheck boolean
239fb915e6 2023-10-19 1899: ---@param nolimit boolean
239fb915e6 2023-10-19 1900: ---@param pos integer
239fb915e6 2023-10-19 1901: ---@param zone? integer default: 0xff
239fb915e6 2023-10-19 1902: function Duel.SpecialSummonStep(c,sumtype,sumplayer,target_player,nocheck,nolimit,pos,zone) end
239fb915e6 2023-10-19 1903: 
239fb915e6 2023-10-19 1904: ---此函数在确定复数个Duel.SpecialSummonStep调用完毕之后调用,用于触发事件
239fb915e6 2023-10-19 1905: ---@return nil|integer
239fb915e6 2023-10-19 1906: function Duel.SpecialSummonComplete() end
239fb915e6 2023-10-19 1907: 
239fb915e6 2023-10-19 1908: ---检查玩家player能否向卡片c添加count个countertype类型的指示物,如果 player 不是 0或者1,则返回false
239fb915e6 2023-10-19 1909: ---@return boolean
239fb915e6 2023-10-19 1910: ---@param player integer
239fb915e6 2023-10-19 1911: ---@param countertype? integer
239fb915e6 2023-10-19 1912: ---@param count? integer
239fb915e6 2023-10-19 1913: ---@param c? Card
239fb915e6 2023-10-19 1914: function Duel.IsCanAddCounter(player,countertype,count,c) end
239fb915e6 2023-10-19 1915: 
239fb915e6 2023-10-19 1916: ---让玩家player以reason为原因移除场上存在的countertype类型的count个指示物,返回值表示是否成功
239fb915e6 2023-10-19 1917: ---s表示对player来说的己方的可移除指示物的位置,o表示对player来说的对方的可移除指示物的位置
239fb915e6 2023-10-19 1918: ---@return boolean
239fb915e6 2023-10-19 1919: ---@param player integer
239fb915e6 2023-10-19 1920: ---@param s integer
239fb915e6 2023-10-19 1921: ---@param o integer
239fb915e6 2023-10-19 1922: ---@param countertype integer
239fb915e6 2023-10-19 1923: ---@param count integer
239fb915e6 2023-10-19 1924: ---@param reason integer
239fb915e6 2023-10-19 1925: function Duel.RemoveCounter(player,s,o,countertype,count,reason) end
239fb915e6 2023-10-19 1926: 
239fb915e6 2023-10-19 1927: ---检查玩家player以reason为原因是否能移除场上的countertype类型的count个指示物
239fb915e6 2023-10-19 1928: ---s表示对player来说的己方的可移除指示物的位置,o表示对player来说的对方的可移除指示物的位置
239fb915e6 2023-10-19 1929: ---@return boolean
239fb915e6 2023-10-19 1930: ---@param player integer
239fb915e6 2023-10-19 1931: ---@param s integer
239fb915e6 2023-10-19 1932: ---@param o integer
239fb915e6 2023-10-19 1933: ---@param countertype integer
239fb915e6 2023-10-19 1934: ---@param count integer
239fb915e6 2023-10-19 1935: ---@param reason integer
239fb915e6 2023-10-19 1936: function Duel.IsCanRemoveCounter(player,s,o,countertype,count,reason) end
239fb915e6 2023-10-19 1937: 
239fb915e6 2023-10-19 1938: ---返回场上存在的countertype类型的指示物的数量
239fb915e6 2023-10-19 1939: ---s表示对player来说的己方的可移除指示物的位置,o表示对player来说的对方的可移除指示物的位置
239fb915e6 2023-10-19 1940: ---@return integer
239fb915e6 2023-10-19 1941: ---@param player integer
239fb915e6 2023-10-19 1942: ---@param s integer
239fb915e6 2023-10-19 1943: ---@param o integer
239fb915e6 2023-10-19 1944: ---@param countertype integer
239fb915e6 2023-10-19 1945: function Duel.GetCounter(player,s,o,countertype) end
239fb915e6 2023-10-19 1946: 
239fb915e6 2023-10-19 1947: ---改变targets的表示形式返回实际操作的数量,若只有2个参数,则不管什么表示形式,都变成 第二个参数 代表的形式
239fb915e6 2023-10-19 1948: ---表侧攻击表示 = au
239fb915e6 2023-10-19 1949: ---里侧攻击表示 = ad
239fb915e6 2023-10-19 1950: ---表侧守备表示 = du
239fb915e6 2023-10-19 1951: ---里侧守备表示 = dd
239fb915e6 2023-10-19 1952: ---如果noflip=true则不触发反转效果(但会触发反转时的诱发效果)
239fb915e6 2023-10-19 1953: ---如果setavailable=true则对象之后变成里侧也发动反转效果
239fb915e6 2023-10-19 1954: ---@return integer
239fb915e6 2023-10-19 1955: ---@param targets Card|Group
239fb915e6 2023-10-19 1956: ---@param au integer
239fb915e6 2023-10-19 1957: ---@param ad? integer default: au
239fb915e6 2023-10-19 1958: ---@param du? integer default: au
239fb915e6 2023-10-19 1959: ---@param dd? integer default: au
239fb915e6 2023-10-19 1960: ---@param noflip? boolean default: false
239fb915e6 2023-10-19 1961: ---@param setavailable? boolean default: false
239fb915e6 2023-10-19 1962: function Duel.ChangePosition(targets,au,ad,du,dd,noflip,setavailable) end
239fb915e6 2023-10-19 1963: 
239fb915e6 2023-10-19 1964: ---以reason原因解放targets ,返回值是实际解放的数量
239fb915e6 2023-10-19 1965: ---如果reason含有REASON_COST,则不会检查卡片是否不受效果影响
239fb915e6 2023-10-19 1966: ---如果设置reason_player,则视为被玩家reason_player移动
239fb915e6 2023-10-19 1967: ---@return integer
239fb915e6 2023-10-19 1968: ---@param targets Card|Group
239fb915e6 2023-10-19 1969: ---@param reason integer
239fb915e6 2023-10-19 1970: ---@param reason_player? integer
239fb915e6 2023-10-19 1971: function Duel.Release(targets,reason,reason_player) end
239fb915e6 2023-10-19 1972: 
239fb915e6 2023-10-19 1973: ---让玩家move_player把c移动的target_player的场上,返回值表示是否成功
239fb915e6 2023-10-19 1974: ---dest只能是LOCATION_MZONE或者LOCATION_SZONE,pos表示可选表示形式, enable 表示是否立刻适用c的效果
239fb915e6 2023-10-19 1975: ---@return boolean
239fb915e6 2023-10-19 1976: ---@param c Card
239fb915e6 2023-10-19 1977: ---@param move_player integer
239fb915e6 2023-10-19 1978: ---@param target_player integer
239fb915e6 2023-10-19 1979: ---@param dest integer
239fb915e6 2023-10-19 1980: ---@param pos integer
239fb915e6 2023-10-19 1981: ---@param enable boolean
239fb915e6 2023-10-19 1982: ---@param zone? integer
239fb915e6 2023-10-19 1983: function Duel.MoveToField(c,move_player,target_player,dest,pos,enable,zone) end
239fb915e6 2023-10-19 1984: 
239fb915e6 2023-10-19 1985: ---把c以表示形式pos返回到场上[的区域 zone],pos默认值是离场前的表示形式,返回值表示是否成功
239fb915e6 2023-10-19 1986: ---c必须是以REASON_TEMPORARY原因离场,并且离场后没有离开过那个位置
239fb915e6 2023-10-19 1987: ---@return boolean
239fb915e6 2023-10-19 1988: ---@param c Card
239fb915e6 2023-10-19 1989: ---@param pos? integer
239fb915e6 2023-10-19 1990: ---@param zone? integer default: 0xff
239fb915e6 2023-10-19 1991: function Duel.ReturnToField(c,pos,zone) end
239fb915e6 2023-10-19 1992: 
239fb915e6 2023-10-19 1993: ---移动c的序号,通常用于在场上换格子或者在卡组中移动到最上方或者最下方
239fb915e6 2023-10-19 1994: ---@param c Card
239fb915e6 2023-10-19 1995: ---@param seq integer
239fb915e6 2023-10-19 1996: function Duel.MoveSequence(c,seq) end
239fb915e6 2023-10-19 1997: 
239fb915e6 2023-10-19 1998: ---交换c1和c2的位置
239fb915e6 2023-10-19 1999: ---@param c1 Card
239fb915e6 2023-10-19 2000: ---@param c2 Card
239fb915e6 2023-10-19 2001: function Duel.SwapSequence(c1,c2) end
239fb915e6 2023-10-19 2002: 
239fb915e6 2023-10-19 2003: ---发动效果e(?)
239fb915e6 2023-10-19 2004: ---@param e Effect
239fb915e6 2023-10-19 2005: function Duel.Activate(e) end
239fb915e6 2023-10-19 2006: 
239fb915e6 2023-10-19 2007: ---设定连锁条件,f的函数原型为 bool f(e,ep,tp)
239fb915e6 2023-10-19 2008: ---e表示要限制连锁的效果,ep表示要限制连锁的玩家,tp表示发动该效果的玩家
239fb915e6 2023-10-19 2009: ---在cost或者target处理中调用此函数可以限制可以连锁的效果的种类(如超融合)
239fb915e6 2023-10-19 2010: ---如果f返回false表示不能连锁,一旦设置连锁条件后发生了新的连锁那么连锁条件将会解除
239fb915e6 2023-10-19 2011: ---@param f function
239fb915e6 2023-10-19 2012: function Duel.SetChainLimit(f) end
239fb915e6 2023-10-19 2013: 
239fb915e6 2023-10-19 2014: ---功能同Duel.SetChainLimit,但是此函数设定的连锁条件直到连锁结束才会解除
239fb915e6 2023-10-19 2015: ---@param f function
239fb915e6 2023-10-19 2016: function Duel.SetChainLimitTillChainEnd(f) end
239fb915e6 2023-10-19 2017: 
239fb915e6 2023-10-19 2018: ---返回玩家player受到的连锁素材的效果,此函数仅用于融合类卡的效果
239fb915e6 2023-10-19 2019: ---@return Effect
239fb915e6 2023-10-19 2020: ---@param player integer
239fb915e6 2023-10-19 2021: function Duel.GetChainMaterial(player) end
239fb915e6 2023-10-19 2022: 
239fb915e6 2023-10-19 2023: ---确认玩家player卡组最上方count张卡
239fb915e6 2023-10-19 2024: ---@param player integer
239fb915e6 2023-10-19 2025: ---@param count integer
239fb915e6 2023-10-19 2026: function Duel.ConfirmDecktop(player,count) end
239fb915e6 2023-10-19 2027: 
239fb915e6 2023-10-19 2028: ---确认玩家player额外卡组里侧的卡 最上方count张卡
239fb915e6 2023-10-19 2029: ---@param player integer
239fb915e6 2023-10-19 2030: ---@param count integer
239fb915e6 2023-10-19 2031: function Duel.ConfirmExtratop(player,count) end
239fb915e6 2023-10-19 2032: 
239fb915e6 2023-10-19 2033: ---给玩家player确认targets
239fb915e6 2023-10-19 2034: ---@param player integer
239fb915e6 2023-10-19 2035: ---@param targets Card|Group
239fb915e6 2023-10-19 2036: function Duel.ConfirmCards(player,targets) end
239fb915e6 2023-10-19 2037: 
239fb915e6 2023-10-19 2038: ---让玩家sort_player对玩家target_player的卡组最上方count张卡进行排序,最先选的卡在最上面,然后下面是第二张选择的卡,以此类推
239fb915e6 2023-10-19 2039: ---最多只能排序16张卡
239fb915e6 2023-10-19 2040: ---@param sort_player integer
239fb915e6 2023-10-19 2041: ---@param target_player integer
239fb915e6 2023-10-19 2042: ---@param count integer
239fb915e6 2023-10-19 2043: function Duel.SortDecktop(sort_player,target_player,count) end
239fb915e6 2023-10-19 2044: 
239fb915e6 2023-10-19 2045: ---检查当前是否是event时点
239fb915e6 2023-10-19 2046: ---若get_info=true并且是正确的时点,则还返回触发时点的信息 eg,ep,ev,re,r,rp
239fb915e6 2023-10-19 2047: ---@return boolean
239fb915e6 2023-10-19 2048: ---@return Group|nil
239fb915e6 2023-10-19 2049: ---@return integer|nil
239fb915e6 2023-10-19 2050: ---@return integer|nil
239fb915e6 2023-10-19 2051: ---@return Effect|nil
239fb915e6 2023-10-19 2052: ---@return integer|nil
239fb915e6 2023-10-19 2053: ---@return integer|nil
239fb915e6 2023-10-19 2054: ---@param event integer
239fb915e6 2023-10-19 2055: ---@param get_info? boolean
239fb915e6 2023-10-19 2056: function Duel.CheckEvent(event,get_info) end
239fb915e6 2023-10-19 2057: 
239fb915e6 2023-10-19 2058: ---以eg,ep,ev,re,r,rp触发一个时点 code
239fb915e6 2023-10-19 2059: ---@param eg Group|Card
239fb915e6 2023-10-19 2060: ---@param code integer
239fb915e6 2023-10-19 2061: ---@param re Effect
239fb915e6 2023-10-19 2062: ---@param r integer
239fb915e6 2023-10-19 2063: ---@param rp integer
239fb915e6 2023-10-19 2064: ---@param ep integer
239fb915e6 2023-10-19 2065: ---@param ev integer
239fb915e6 2023-10-19 2066: function Duel.RaiseEvent(eg,code,re,r,rp,ep,ev) end
239fb915e6 2023-10-19 2067: 
239fb915e6 2023-10-19 2068: ---以eg,ep,ev,re,r,rp为卡片ec触发一个单体时点 code
239fb915e6 2023-10-19 2069: ---@param ec Card
239fb915e6 2023-10-19 2070: ---@param code integer
239fb915e6 2023-10-19 2071: ---@param re Effect
239fb915e6 2023-10-19 2072: ---@param r integer
239fb915e6 2023-10-19 2073: ---@param rp integer
239fb915e6 2023-10-19 2074: ---@param ep integer
239fb915e6 2023-10-19 2075: ---@param ev integer
239fb915e6 2023-10-19 2076: function Duel.RaiseSingleEvent(ec,code,re,r,rp,ep,ev) end
239fb915e6 2023-10-19 2077: 
239fb915e6 2023-10-19 2078: ---检查当前是否是timing提示时点
239fb915e6 2023-10-19 2079: ---@return boolean
239fb915e6 2023-10-19 2080: ---@param timing integer
239fb915e6 2023-10-19 2081: function Duel.CheckTiming(timing) end
239fb915e6 2023-10-19 2082: 
239fb915e6 2023-10-19 2083: ---检查场地卡号是否是code [,来源玩家是否是 player][,生效区域是否在 loc 内]
239fb915e6 2023-10-19 2084: ---场地卡号指当前生效的场地卡的卡号,或者海神的巫女把场地变化效果的值
239fb915e6 2023-10-19 2085: ---来源玩家指当前生效的场地卡的控制者,或者海神的巫女等卡的控制者
239fb915e6 2023-10-19 2086: ---@return boolean
239fb915e6 2023-10-19 2087: ---@param code integer
239fb915e6 2023-10-19 2088: ---@param player? integer default: PLAYER_ALL
239fb915e6 2023-10-19 2089: ---@param loc? integer default: LOCATION_ONFIELD
239fb915e6 2023-10-19 2090: function Duel.IsEnvironment(code,player,loc) end
239fb915e6 2023-10-19 2091: 
239fb915e6 2023-10-19 2092: ---当前效果处理完令player以win_reason决斗胜利
239fb915e6 2023-10-19 2093: ---@param player integer
239fb915e6 2023-10-19 2094: ---@param win_reason integer
239fb915e6 2023-10-19 2095: function Duel.Win(player,win_reason) end
239fb915e6 2023-10-19 2096: 
239fb915e6 2023-10-19 2097: ---让玩家player以原因reason抽count张卡,返回实际抽的卡的数量
239fb915e6 2023-10-19 2098: ---如果reason含有REASON_RULE则此次抽卡不受“不能抽卡”的效果的影响
239fb915e6 2023-10-19 2099: ---@return integer
239fb915e6 2023-10-19 2100: ---@param player integer
239fb915e6 2023-10-19 2101: ---@param count integer
239fb915e6 2023-10-19 2102: ---@param reason integer
239fb915e6 2023-10-19 2103: function Duel.Draw(player,count,reason) end
239fb915e6 2023-10-19 2104: 
239fb915e6 2023-10-19 2105: ---以reason原因给与玩家player造成value的伤害,返回实际收到的伤害值
239fb915e6 2023-10-19 2106: ---如果受到伤害变成回复等效果的影响时,返回值为0.
239fb915e6 2023-10-19 2107: ---is_step为true则是伤害/恢复LP过程的分解,需要调用Duel.RDComplete()触发时点
239fb915e6 2023-10-19 2108: ---@return integer
239fb915e6 2023-10-19 2109: ---@param player integer
239fb915e6 2023-10-19 2110: ---@param value integer
239fb915e6 2023-10-19 2111: ---@param reason integer
239fb915e6 2023-10-19 2112: ---@param is_step? boolean default: false
239fb915e6 2023-10-19 2113: function Duel.Damage(player,value,reason,is_step) end
239fb915e6 2023-10-19 2114: 
239fb915e6 2023-10-19 2115: ---以reason原因使玩家player回复value的LP,返回实际的回复值
239fb915e6 2023-10-19 2116: ---如果受到回复变成伤害等效果的影响时,返回值为0.
239fb915e6 2023-10-19 2117: ---is_step为true则是伤害/恢复LP过程的分解,需要调用Duel.RDComplete()触发时点
239fb915e6 2023-10-19 2118: ---@return integer
239fb915e6 2023-10-19 2119: ---@param player integer
239fb915e6 2023-10-19 2120: ---@param value integer
239fb915e6 2023-10-19 2121: ---@param reason integer
239fb915e6 2023-10-19 2122: ---@param is_step? boolean default: false
239fb915e6 2023-10-19 2123: function Duel.Recover(player,value,reason,is_step) end
239fb915e6 2023-10-19 2124: 
239fb915e6 2023-10-19 2125: ---在调用Duel.Damage/Duel.Recover时,若is_step参数为true,则需调用此函数触发时点
239fb915e6 2023-10-19 2126: function Duel.RDComplete() end
239fb915e6 2023-10-19 2127: 
239fb915e6 2023-10-19 2128: ---把c1作为玩家player的装备卡装备给c2,返回值表示是否成功
239fb915e6 2023-10-19 2129: ---up=false则保持装备卡之前的表示形式
239fb915e6 2023-10-19 2130: ---is_step=true则是装备过程的分解,需要配合Duel.EquipComplete使用
239fb915e6 2023-10-19 2131: ---@return boolean
239fb915e6 2023-10-19 2132: ---@param player integer
239fb915e6 2023-10-19 2133: ---@param c1 Card
239fb915e6 2023-10-19 2134: ---@param c2 Card
239fb915e6 2023-10-19 2135: ---@param up? boolean default: true
239fb915e6 2023-10-19 2136: ---@param is_step? boolean default: false
239fb915e6 2023-10-19 2137: function Duel.Equip(player,c1,c2,up,is_step) end
239fb915e6 2023-10-19 2138: 
239fb915e6 2023-10-19 2139: ---在调用Duel.Equip时,若is_step参数为true,则需调用此函数触发时点
239fb915e6 2023-10-19 2140: function Duel.EquipComplete() end
239fb915e6 2023-10-19 2141: 
239fb915e6 2023-10-19 2142: ---让玩家 player [直到 reset_count 次 reset_phase 时][在区域 zone]
239fb915e6 2023-10-19 2143: ---得到 targets 的控制权,返回值表示是否成功
239fb915e6 2023-10-19 2144: ---@return boolean
239fb915e6 2023-10-19 2145: ---@param targets Card|Group
239fb915e6 2023-10-19 2146: ---@param player integer
239fb915e6 2023-10-19 2147: ---@param reset_phase? integer default: 0
239fb915e6 2023-10-19 2148: ---@param reset_count? integer default: 0
239fb915e6 2023-10-19 2149: ---@param zone? integer default: 0xff
239fb915e6 2023-10-19 2150: function Duel.GetControl(targets,player,reset_phase,reset_count,zone) end
239fb915e6 2023-10-19 2151: 
239fb915e6 2023-10-19 2152: ---交换targets1与targets2的控制权,返回值表示是否成功
239fb915e6 2023-10-19 2153: ---第三个第四个参数同 Duel.GetControl
239fb915e6 2023-10-19 2154: ---@return boolean
239fb915e6 2023-10-19 2155: ---@param targets1 Card|Group
239fb915e6 2023-10-19 2156: ---@param targets2 Card|Group
239fb915e6 2023-10-19 2157: ---@param reset_phase? integer default: 0
239fb915e6 2023-10-19 2158: ---@param reset_count? integer default: 0
239fb915e6 2023-10-19 2159: function Duel.SwapControl(targets1,targets2,reset_phase,reset_count) end
239fb915e6 2023-10-19 2160: 
239fb915e6 2023-10-19 2161: ---检查玩家player是否能支付cost点lp,must_pay表示不能用代替支付的效果
239fb915e6 2023-10-19 2162: ---@return boolean
239fb915e6 2023-10-19 2163: ---@param player integer
239fb915e6 2023-10-19 2164: ---@param cost integer
239fb915e6 2023-10-19 2165: ---@param must_pay? boolean default: false
239fb915e6 2023-10-19 2166: function Duel.CheckLPCost(player,cost,must_pay) end
239fb915e6 2023-10-19 2167: 
239fb915e6 2023-10-19 2168: ---让玩家player支付cost点lp,must_pay表示不能用代替支付的效果
239fb915e6 2023-10-19 2169: ---@param player integer
239fb915e6 2023-10-19 2170: ---@param cost integer
239fb915e6 2023-10-19 2171: ---@param must_pay? boolean default: false
239fb915e6 2023-10-19 2172: function Duel.PayLPCost(player,cost,must_pay) end
239fb915e6 2023-10-19 2173: 
239fb915e6 2023-10-19 2174: ---以原因reason把玩家player的卡组最上端count张卡送去墓地,返回实际转移的数量
239fb915e6 2023-10-19 2175: ---@return integer
239fb915e6 2023-10-19 2176: ---@param player integer
239fb915e6 2023-10-19 2177: ---@param count integer
239fb915e6 2023-10-19 2178: ---@param reason integer
239fb915e6 2023-10-19 2179: function Duel.DiscardDeck(player,count,reason) end
239fb915e6 2023-10-19 2180: 
239fb915e6 2023-10-19 2181: ---过滤函数让玩家player选择并以reason原因丢弃满足筛选条件f兵不等于ex的min-max张手卡
239fb915e6 2023-10-19 2182: ---第7个参数开始为额外参数
239fb915e6 2023-10-19 2183: ---@return integer
239fb915e6 2023-10-19 2184: ---@param player integer
239fb915e6 2023-10-19 2185: ---@param f function|nil
239fb915e6 2023-10-19 2186: ---@param min integer
239fb915e6 2023-10-19 2187: ---@param max integer
239fb915e6 2023-10-19 2188: ---@param reason integer
239fb915e6 2023-10-19 2189: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2190: ---@param ... any
239fb915e6 2023-10-19 2191: function Duel.DiscardHand(player,f,min,max,reason,ex,...) end
239fb915e6 2023-10-19 2192: 
239fb915e6 2023-10-19 2193: ---使下一个操作不检查是否需要洗切卡组或手卡
239fb915e6 2023-10-19 2194: ---注:如果不调用此函数,
239fb915e6 2023-10-19 2195: ---除了调用Duel.DiscardDeck和Duel.Draw之外从卡组中取出卡或者把卡加入手卡
239fb915e6 2023-10-19 2196: ---或者把卡加入卡组(非最上端或最底端)时,系统会自动在效果处理结束时洗切卡组或手卡
239fb915e6 2023-10-19 2197: ---如果不希望如此,比如从卡组顶端除外一张卡等操作,那么需要调用此函数
239fb915e6 2023-10-19 2198: ---此函数仅保证紧接着的一次操作不会进行洗卡检测
239fb915e6 2023-10-19 2199: ---@param disable? boolean default: true
239fb915e6 2023-10-19 2200: function Duel.DisableShuffleCheck(disable) end
239fb915e6 2023-10-19 2201: 
239fb915e6 2023-10-19 2202: ---关闭卡片的自爆检查。不传参或传true为关闭,传false为启用自爆检查
239fb915e6 2023-10-19 2203: ---@param enabled? boolean default: true
239fb915e6 2023-10-19 2204: function Duel.DisableSelfDestroyCheck(enabled) end
239fb915e6 2023-10-19 2205: 
239fb915e6 2023-10-19 2206: ---手动洗切玩家player的卡组
239fb915e6 2023-10-19 2207: ---注:会重置洗卡检测的状态
239fb915e6 2023-10-19 2208: ---@param player integer
239fb915e6 2023-10-19 2209: function Duel.ShuffleDeck(player) end
239fb915e6 2023-10-19 2210: 
239fb915e6 2023-10-19 2211: ---手动洗切玩家player的额外卡组
239fb915e6 2023-10-19 2212: ---@param player integer
239fb915e6 2023-10-19 2213: function Duel.ShuffleExtra(player) end
239fb915e6 2023-10-19 2214: 
239fb915e6 2023-10-19 2215: ---手动洗切玩家player的手卡
239fb915e6 2023-10-19 2216: ---注:会重置洗卡检测的状态
239fb915e6 2023-10-19 2217: ---@param player integer
239fb915e6 2023-10-19 2218: function Duel.ShuffleHand(player) end
239fb915e6 2023-10-19 2219: 
239fb915e6 2023-10-19 2220: ---洗切覆盖的卡片组 g (实例:魔术礼帽),若g中有表侧表示的卡,则此函数无效
239fb915e6 2023-10-19 2221: ---此函数现在可以洗切魔陷区的覆盖卡
239fb915e6 2023-10-19 2222: ---@param g Group
239fb915e6 2023-10-19 2223: function Duel.ShuffleSetCard(g) end
239fb915e6 2023-10-19 2224: 
239fb915e6 2023-10-19 2225: ---将攻击怪兽变为c
239fb915e6 2023-10-19 2226: ---若 ignore_count=true 则原来的攻击怪兽不视为攻击过
239fb915e6 2023-10-19 2227: ---@param c Card
239fb915e6 2023-10-19 2228: ---@param ignore_count? boolean default: false
239fb915e6 2023-10-19 2229: function Duel.ChangeAttacker(c,ignore_count) end
239fb915e6 2023-10-19 2230: 
239fb915e6 2023-10-19 2231: ---将攻击对象变为c,c为nil表示直接攻击,返回值表示是否成功转移攻击对象
239fb915e6 2023-10-19 2232: ---@return boolean
239fb915e6 2023-10-19 2233: ---@param c Card|nil
239fb915e6 2023-10-19 2234: function Duel.ChangeAttackTarget(c) end
239fb915e6 2023-10-19 2235: 
239fb915e6 2023-10-19 2236: ---令c1与c2进行战斗伤害计算(c1 攻击 c2)
239fb915e6 2023-10-19 2237: ---若 new_attack=true 则视为 攻击的卡进行过攻击宣言(?)
239fb915e6 2023-10-19 2238: ---@param c1 Card
239fb915e6 2023-10-19 2239: ---@param c2 Card
239fb915e6 2023-10-19 2240: ---@param new_attack? boolean default: false
239fb915e6 2023-10-19 2241: function Duel.CalculateDamage(c1,c2,new_attack) end
239fb915e6 2023-10-19 2242: 
239fb915e6 2023-10-19 2243: ---返回玩家player在本次战斗中受到的伤害
239fb915e6 2023-10-19 2244: ---@return integer
239fb915e6 2023-10-19 2245: ---@param player integer
239fb915e6 2023-10-19 2246: function Duel.GetBattleDamage(player) end
239fb915e6 2023-10-19 2247: 
239fb915e6 2023-10-19 2248: ---把玩家player在本次战斗中受到的伤害变成value,若 check=false 则原本战斗伤害就算为0也改变伤害
239fb915e6 2023-10-19 2249: ---@param player integer
239fb915e6 2023-10-19 2250: ---@param value integer
239fb915e6 2023-10-19 2251: ---@param check? boolean default: true
239fb915e6 2023-10-19 2252: function Duel.ChangeBattleDamage(player,value,check) end
239fb915e6 2023-10-19 2253: 
239fb915e6 2023-10-19 2254: ---把连锁chainc的对象换成g
239fb915e6 2023-10-19 2255: ---@param chainc integer
239fb915e6 2023-10-19 2256: ---@param g Group
239fb915e6 2023-10-19 2257: function Duel.ChangeTargetCard(chainc,g) end
239fb915e6 2023-10-19 2258: 
239fb915e6 2023-10-19 2259: ---把连锁chainc的对象玩家换成player
239fb915e6 2023-10-19 2260: ---@param chainc integer
239fb915e6 2023-10-19 2261: ---@param player integer
239fb915e6 2023-10-19 2262: function Duel.ChangeTargetPlayer(chainc,player) end
239fb915e6 2023-10-19 2263: 
239fb915e6 2023-10-19 2264: ---把连锁chainc的参数换成param
239fb915e6 2023-10-19 2265: ---@param chainc integer
239fb915e6 2023-10-19 2266: ---@param param integer
239fb915e6 2023-10-19 2267: function Duel.ChangeTargetParam(chainc,param) end
239fb915e6 2023-10-19 2268: 
239fb915e6 2023-10-19 2269: ---中断当前效果,使之后的效果处理视为不同时处理,此函数会造成错时点
239fb915e6 2023-10-19 2270: function Duel.BreakEffect() end
239fb915e6 2023-10-19 2271: 
239fb915e6 2023-10-19 2272: ---把连锁chainc的效果的处理函数换成f,用于实现“把效果变成”等的效果
239fb915e6 2023-10-19 2273: ---f(e,tp,eg,ep,ev,re,r,rp)
239fb915e6 2023-10-19 2274: ---@param chainc integer
239fb915e6 2023-10-19 2275: ---@param f function
239fb915e6 2023-10-19 2276: function Duel.ChangeChainOperation(chainc,f) end
239fb915e6 2023-10-19 2277: 
239fb915e6 2023-10-19 2278: ---使连锁chainc的发动无效,返回值表示是否成功
239fb915e6 2023-10-19 2279: ---@return boolean
239fb915e6 2023-10-19 2280: ---@param chainc integer
239fb915e6 2023-10-19 2281: function Duel.NegateActivation(chainc) end
239fb915e6 2023-10-19 2282: 
239fb915e6 2023-10-19 2283: ---使连锁chainc的效果无效,返回值表示是否成功
239fb915e6 2023-10-19 2284: ---@return boolean
239fb915e6 2023-10-19 2285: ---@param chainc integer
239fb915e6 2023-10-19 2286: ---@param forced? boolean
239fb915e6 2023-10-19 2287: function Duel.NegateEffect(chainc,forced) end
239fb915e6 2023-10-19 2288: 
239fb915e6 2023-10-19 2289: ---使和卡片c有关的连锁都无效化,发生reset事件则重置,reset 默认包含 RESET_CHAIN
239fb915e6 2023-10-19 2290: ---@param c Card
239fb915e6 2023-10-19 2291: ---@param reset integer
239fb915e6 2023-10-19 2292: function Duel.NegateRelatedChain(c,reset) end
239fb915e6 2023-10-19 2293: 
239fb915e6 2023-10-19 2294: ---使正在召唤·反转召唤·特殊召唤的targets的召唤无效
239fb915e6 2023-10-19 2295: ---@param targets Card|Group
239fb915e6 2023-10-19 2296: function Duel.NegateSummon(targets) end
239fb915e6 2023-10-19 2297: 
239fb915e6 2023-10-19 2298: ---手动增加1次玩家[对于卡片c]的已经通常召唤过的次数
239fb915e6 2023-10-19 2299: ---@param c? Card
239fb915e6 2023-10-19 2300: function Duel.IncreaseSummonedCount(c) end
239fb915e6 2023-10-19 2301: 
239fb915e6 2023-10-19 2302: ---检查回合玩家本回合是否还能通常召唤[卡片c]
239fb915e6 2023-10-19 2303: ---@return boolean
239fb915e6 2023-10-19 2304: ---@param c? Card
239fb915e6 2023-10-19 2305: function Duel.CheckSummonedCount(c) end
239fb915e6 2023-10-19 2306: 
239fb915e6 2023-10-19 2307: ---返回玩家player的场上location可用的[区域 zone 里的]空格数
239fb915e6 2023-10-19 2308: ---location只能是LOCATION_MZONE或者LOCATION_SZONE
239fb915e6 2023-10-19 2309: ---reason为LOCATION_REASON_TOFIELD或LOCATION_REASON_CONTROL
239fb915e6 2023-10-19 2310: ---##第三个第四个额外参数与凯撒斗技场等限制格子的效果有关
239fb915e6 2023-10-19 2311: ---@return integer
239fb915e6 2023-10-19 2312: ---@param player integer
239fb915e6 2023-10-19 2313: ---@param location integer
239fb915e6 2023-10-19 2314: ---@param use_player? integer
239fb915e6 2023-10-19 2315: ---@param reason? integer
239fb915e6 2023-10-19 2316: ---@param zone? integer default: 0xff
239fb915e6 2023-10-19 2317: function Duel.GetLocationCount(player,location,use_player,reason,zone) end
239fb915e6 2023-10-19 2318: 
239fb915e6 2023-10-19 2319: ---返回玩家player场上[targets 离开后]可用的[区域 zone 里的]怪兽区数量
239fb915e6 2023-10-19 2320: ---##第三个第四个额外参数与凯撒斗技场等限制格子的效果有关
239fb915e6 2023-10-19 2321: ---@return integer
239fb915e6 2023-10-19 2322: ---@return integer zone
239fb915e6 2023-10-19 2323: ---@param player integer
239fb915e6 2023-10-19 2324: ---@param targets? Group|Card
239fb915e6 2023-10-19 2325: ---@param use_player? integer
239fb915e6 2023-10-19 2326: ---@param reason? integer
239fb915e6 2023-10-19 2327: ---@param zone? integer default: 0xff
239fb915e6 2023-10-19 2328: function Duel.GetMZoneCount(player,targets,use_player,reason,zone) end
239fb915e6 2023-10-19 2329: 
239fb915e6 2023-10-19 2330: ---返回玩家player场上[假如因玩家 reason_player 的原因让 targets 离场后,把卡片 sc 在 zone 区域特殊召唤]可用的 能让额外卡组的怪兽 出场的空格数
239fb915e6 2023-10-19 2331: ---@return integer
239fb915e6 2023-10-19 2332: ---@param player integer
239fb915e6 2023-10-19 2333: ---@param reason_player? integer default: player
239fb915e6 2023-10-19 2334: ---@param targets? Group|Card|nil
239fb915e6 2023-10-19 2335: ---@param sc? Card|integer
239fb915e6 2023-10-19 2336: ---@param zone? integer default: 0xff
239fb915e6 2023-10-19 2337: function Duel.GetLocationCountFromEx(player,reason_player,targets,sc,zone) end
239fb915e6 2023-10-19 2338: 
239fb915e6 2023-10-19 2339: ---返回玩家player场上[对于 use_player 来说]可用的怪兽区数量(?)
239fb915e6 2023-10-19 2340: ---@return integer
239fb915e6 2023-10-19 2341: ---@param player integer
239fb915e6 2023-10-19 2342: ---@param use_player? integer
239fb915e6 2023-10-19 2343: function Duel.GetUsableMZoneCount(player,use_player) end
239fb915e6 2023-10-19 2344: 
239fb915e6 2023-10-19 2345: ---返回以玩家player来看的 s_range 和 o_range 区域的处于连接状态的卡片组[其实只要后面2个参数不为0就行,只要不为0,都会变成LOCATION_MZONE](?)
239fb915e6 2023-10-19 2346: ---@return Group
239fb915e6 2023-10-19 2347: ---@param player integer
239fb915e6 2023-10-19 2348: ---@param s_range integer
239fb915e6 2023-10-19 2349: ---@param o_range integer
239fb915e6 2023-10-19 2350: function Duel.GetLinkedGroup(player,s_range,o_range) end
239fb915e6 2023-10-19 2351: 
239fb915e6 2023-10-19 2352: ---返回以玩家player来看的 s_range 和 o_range 区域的处于连接状态的卡片的数量(?)
239fb915e6 2023-10-19 2353: ---@return integer
239fb915e6 2023-10-19 2354: ---@param player integer
239fb915e6 2023-10-19 2355: ---@param s_range integer
239fb915e6 2023-10-19 2356: ---@param o_range integer
239fb915e6 2023-10-19 2357: function Duel.GetLinkedGroupCount(player,s_range,o_range) end
239fb915e6 2023-10-19 2358: 
239fb915e6 2023-10-19 2359: ---返回以玩家player来看的所有连接区域
239fb915e6 2023-10-19 2360: ---@return integer
239fb915e6 2023-10-19 2361: ---@param player integer
239fb915e6 2023-10-19 2362: function Duel.GetLinkedZone(player) end
239fb915e6 2023-10-19 2363: 
239fb915e6 2023-10-19 2364: ---返回玩家player的场上位于location序号为seq的卡,常用于获得场地区域·灵摆区域的卡
239fb915e6 2023-10-19 2365: ---注:召唤·反转召唤·特殊召唤 之际 的卡无法获取
239fb915e6 2023-10-19 2366: ---@return Card
239fb915e6 2023-10-19 2367: ---@param player integer
239fb915e6 2023-10-19 2368: ---@param location integer
239fb915e6 2023-10-19 2369: ---@param seq integer
239fb915e6 2023-10-19 2370: function Duel.GetFieldCard(player,location,seq) end
239fb915e6 2023-10-19 2371: 
239fb915e6 2023-10-19 2372: ---检查玩家player的场上位于location序号为seq的空格是否可用
239fb915e6 2023-10-19 2373: ---@return boolean
239fb915e6 2023-10-19 2374: ---@param player integer
239fb915e6 2023-10-19 2375: ---@param location integer
239fb915e6 2023-10-19 2376: ---@param seq integer
239fb915e6 2023-10-19 2377: function Duel.CheckLocation(player,location,seq) end
239fb915e6 2023-10-19 2378: 
239fb915e6 2023-10-19 2379: ---返回当前正在处理的连锁序号
239fb915e6 2023-10-19 2380: ---@return integer
239fb915e6 2023-10-19 2381: function Duel.GetCurrentChain() end
239fb915e6 2023-10-19 2382: 
239fb915e6 2023-10-19 2383: ---返回连锁chainc的信息,如果chainc=0,则返回当前正在处理的连锁的信息
239fb915e6 2023-10-19 2384: ---此函数根据传入的参数个数按顺序返回相应数量的返回值参数可以是:
239fb915e6 2023-10-19 2385: ---CHAININFO_CHAIN_COUNT               连锁序号
239fb915e6 2023-10-19 2386: ---CHAININFO_TRIGGERING_EFFECT         连锁的效果
239fb915e6 2023-10-19 2387: ---CHAININFO_TRIGGERING_PLAYER         连锁的玩家
239fb915e6 2023-10-19 2388: ---CHAININFO_TRIGGERING_CONTROLER      连锁发生位置所属玩家
239fb915e6 2023-10-19 2389: ---CHAININFO_TRIGGERING_LOCATION       连锁发生位置
239fb915e6 2023-10-19 2390: ---CHAININFO_TRIGGERING_SEQUENCE       连锁发生的位置的序号
239fb915e6 2023-10-19 2391: ---CHAININFO_TARGET_CARDS              连锁的对象卡片组
239fb915e6 2023-10-19 2392: ---CHAININFO_TARGET_PLAYER             连锁的对象玩家
239fb915e6 2023-10-19 2393: ---CHAININFO_TARGET_PARAM              连锁的对象参数
239fb915e6 2023-10-19 2394: ---CHAININFO_DISABLE_REASON            连锁被无效的原因效果
239fb915e6 2023-10-19 2395: ---CHAININFO_DISABLE_PLAYER            连锁被无效的原因玩家
239fb915e6 2023-10-19 2396: ---CHAININFO_CHAIN_ID                  连锁的唯一标识
239fb915e6 2023-10-19 2397: ---CHAININFO_TYPE                      连锁卡片的类型(怪兽·魔法·陷阱)
239fb915e6 2023-10-19 2398: ---CHAININFO_EXTTYPE                   连锁卡片的具体类型(例如同调怪兽·永续魔法·反击陷阱)
239fb915e6 2023-10-19 2399: ---举例:
239fb915e6 2023-10-19 2400: ---Duel.GetChainInfo(0,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TARGET_CARDS)
239fb915e6 2023-10-19 2401: ---将会返回当前连锁发生的位置和对象卡
239fb915e6 2023-10-19 2402: ---@return ...
239fb915e6 2023-10-19 2403: ---@param chainc integer
239fb915e6 2023-10-19 2404: ---@param ... any
239fb915e6 2023-10-19 2405: function Duel.GetChainInfo(chainc,...) end
239fb915e6 2023-10-19 2406: 
239fb915e6 2023-10-19 2407: ---返回连锁 chainc 的相关参数,如果 chainc=0,则返回当前正在处理的连锁的相关参数
239fb915e6 2023-10-19 2408: ---返回6个参数,eg,ep,ev,re,r,rp
239fb915e6 2023-10-19 2409: ---@return Group
239fb915e6 2023-10-19 2410: ---@return integer
239fb915e6 2023-10-19 2411: ---@return integer
239fb915e6 2023-10-19 2412: ---@return Effect
239fb915e6 2023-10-19 2413: ---@return integer
239fb915e6 2023-10-19 2414: ---@return integer
239fb915e6 2023-10-19 2415: ---@param chainc integer
239fb915e6 2023-10-19 2416: function Duel.GetChainEvent(chainc) end
239fb915e6 2023-10-19 2417: 
239fb915e6 2023-10-19 2418: ---返回当前连锁的所有的对象卡,一般只有一个对象时使用
239fb915e6 2023-10-19 2419: ---##多个对象也能使用,剩下的对象依次按顺序返回,但是很容易记错对象的顺序,所以不建议对多个对象使用
239fb915e6 2023-10-19 2420: ---@return Card
239fb915e6 2023-10-19 2421: ---@return ... Card
239fb915e6 2023-10-19 2422: function Duel.GetFirstTarget() end
239fb915e6 2023-10-19 2423: 
239fb915e6 2023-10-19 2424: ---返回当前连锁所有有关联的对象卡
239fb915e6 2023-10-19 2425: ---@return Group
239fb915e6 2023-10-19 2426: function Duel.GetTargetsRelateToChain() end
239fb915e6 2023-10-19 2427: 
239fb915e6 2023-10-19 2428: ---返回当前的阶段
239fb915e6 2023-10-19 2429: ---@return integer
239fb915e6 2023-10-19 2430: function Duel.GetCurrentPhase() end
239fb915e6 2023-10-19 2431: 
239fb915e6 2023-10-19 2432: ---跳过玩家player的phase阶段,并在特定的阶段后reset,reset参数和效果相同
239fb915e6 2023-10-19 2433: ---#value只对phase=PHASE_BATTLE才有用,value=1跳过战斗阶段的结束步骤,用于“变成回合结束阶段”等(招财猫王,闪光弹)
239fb915e6 2023-10-19 2434: ---@param player integer
239fb915e6 2023-10-19 2435: ---@param phase integer
239fb915e6 2023-10-19 2436: ---@param reset_flag integer
239fb915e6 2023-10-19 2437: ---@param reset_count integer
239fb915e6 2023-10-19 2438: ---@param value? integer
239fb915e6 2023-10-19 2439: function Duel.SkipPhase(player,phase,reset_flag,reset_count,value) end
239fb915e6 2023-10-19 2440: 
239fb915e6 2023-10-19 2441: ---用于在伤害阶段检查是否已经计算了战斗伤害
239fb915e6 2023-10-19 2442: ---@return boolean
239fb915e6 2023-10-19 2443: function Duel.IsDamageCalculated() end
239fb915e6 2023-10-19 2444: 
239fb915e6 2023-10-19 2445: ---返回此次战斗攻击的卡
239fb915e6 2023-10-19 2446: ---@return Card
239fb915e6 2023-10-19 2447: function Duel.GetAttacker() end
239fb915e6 2023-10-19 2448: 
239fb915e6 2023-10-19 2449: ---返回此次战斗被攻击的卡,如果返回nil表示是直接攻击
239fb915e6 2023-10-19 2450: ---@return Card
239fb915e6 2023-10-19 2451: function Duel.GetAttackTarget() end
239fb915e6 2023-10-19 2452: 
239fb915e6 2023-10-19 2453: ---返回由player操控的正处于战斗中的怪兽。如果没有战斗或没有目标则会返回nil。
239fb915e6 2023-10-19 2454: ---@return Card|nil
239fb915e6 2023-10-19 2455: ---@return Card|nil
239fb915e6 2023-10-19 2456: ---@param player integer
239fb915e6 2023-10-19 2457: function Duel.GetBattleMonster(player) end
239fb915e6 2023-10-19 2458: 
239fb915e6 2023-10-19 2459: ---无效此次攻击,返回值表示是否成功
239fb915e6 2023-10-19 2460: ---此次攻击已经被其他效果无效或导致攻击的卡不能攻击则返回false
239fb915e6 2023-10-19 2461: ---@return boolean
239fb915e6 2023-10-19 2462: function Duel.NegateAttack() end
239fb915e6 2023-10-19 2463: 
239fb915e6 2023-10-19 2464: ---使攻击卡[或卡片c]可以再进行1次攻击(比如 大开辟,破灭的女王)
239fb915e6 2023-10-19 2465: ---@param c? Card
239fb915e6 2023-10-19 2466: function Duel.ChainAttack(c) end
239fb915e6 2023-10-19 2467: 
239fb915e6 2023-10-19 2468: ---刷新场上的卡的信息
239fb915e6 2023-10-19 2469: ---非特定情况或者不清楚原理请勿使用此函数以免形成死循环
239fb915e6 2023-10-19 2470: function Duel.Readjust() end
239fb915e6 2023-10-19 2471: 
239fb915e6 2023-10-19 2472: ---手动刷新场上[受到卡片c影响]的卡的无效状态
239fb915e6 2023-10-19 2473: ---@param c? Card
239fb915e6 2023-10-19 2474: function Duel.AdjustInstantly(c) end
239fb915e6 2023-10-19 2475: 
239fb915e6 2023-10-19 2476: ---立刻刷新场地信息
239fb915e6 2023-10-19 2477: function Duel.AdjustAll() end
239fb915e6 2023-10-19 2478: 
239fb915e6 2023-10-19 2479: ---返回以player来看的指定位置的卡,s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2480: ---@return Group
239fb915e6 2023-10-19 2481: ---@param player integer
239fb915e6 2023-10-19 2482: ---@param s integer
239fb915e6 2023-10-19 2483: ---@param o integer
239fb915e6 2023-10-19 2484: function Duel.GetFieldGroup(player,s,o) end
239fb915e6 2023-10-19 2485: 
239fb915e6 2023-10-19 2486: ---同 Duel.GetFieldGroup ,只是返回的是卡的数量
239fb915e6 2023-10-19 2487: ---@return integer
239fb915e6 2023-10-19 2488: ---@param player integer
239fb915e6 2023-10-19 2489: ---@param s integer
239fb915e6 2023-10-19 2490: ---@param o integer
239fb915e6 2023-10-19 2491: function Duel.GetFieldGroupCount(player,s,o) end
239fb915e6 2023-10-19 2492: 
239fb915e6 2023-10-19 2493: ---返回玩家player的卡组最上方的count张卡
239fb915e6 2023-10-19 2494: ---@return Group
239fb915e6 2023-10-19 2495: ---@param player integer
239fb915e6 2023-10-19 2496: ---@param count integer
239fb915e6 2023-10-19 2497: function Duel.GetDecktopGroup(player,count) end
239fb915e6 2023-10-19 2498: 
239fb915e6 2023-10-19 2499: ---返回玩家player的额外卡组表侧表示的卡中最上方的count张卡
239fb915e6 2023-10-19 2500: ---@return Group
239fb915e6 2023-10-19 2501: ---@param player integer
239fb915e6 2023-10-19 2502: ---@param count integer
239fb915e6 2023-10-19 2503: function Duel.GetExtraTopGroup(player,count) end
239fb915e6 2023-10-19 2504: 
239fb915e6 2023-10-19 2505: ---过滤函数,返回以player来看的指定位置满足过滤条件f并且不等于ex的卡
239fb915e6 2023-10-19 2506: ---s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2507: ---第6个参数开始为额外参数
239fb915e6 2023-10-19 2508: ---@return Group
239fb915e6 2023-10-19 2509: ---@param f function|nil
239fb915e6 2023-10-19 2510: ---@param player integer
239fb915e6 2023-10-19 2511: ---@param s integer
239fb915e6 2023-10-19 2512: ---@param o integer
239fb915e6 2023-10-19 2513: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2514: ---@param ... any
239fb915e6 2023-10-19 2515: function Duel.GetMatchingGroup(f,player,s,o,ex,...) end
239fb915e6 2023-10-19 2516: 
239fb915e6 2023-10-19 2517: ---过滤函数,返回以player来看的指定位置满足过滤条件f并且不等于ex的卡的数量
239fb915e6 2023-10-19 2518: ---s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2519: ---第6个参数开始为额外参数
239fb915e6 2023-10-19 2520: ---@return integer
239fb915e6 2023-10-19 2521: ---@param f function|nil
239fb915e6 2023-10-19 2522: ---@param player integer
239fb915e6 2023-10-19 2523: ---@param s integer
239fb915e6 2023-10-19 2524: ---@param o integer
239fb915e6 2023-10-19 2525: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2526: ---@param ... any
239fb915e6 2023-10-19 2527: function Duel.GetMatchingGroupCount(f,player,s,o,ex,...) end
239fb915e6 2023-10-19 2528: 
239fb915e6 2023-10-19 2529: ---过滤函数,返回以player来看的指定位置满足过滤条件f并且不等于ex的第一张卡,没有则返回nil
239fb915e6 2023-10-19 2530: ---s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2531: ---第6个参数开始为额外参数
239fb915e6 2023-10-19 2532: ---@return Card
239fb915e6 2023-10-19 2533: ---@param f function|nil
239fb915e6 2023-10-19 2534: ---@param player integer
239fb915e6 2023-10-19 2535: ---@param s integer
239fb915e6 2023-10-19 2536: ---@param o integer
239fb915e6 2023-10-19 2537: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2538: ---@param ... any
239fb915e6 2023-10-19 2539: function Duel.GetFirstMatchingCard(f,player,s,o,ex,...) end
239fb915e6 2023-10-19 2540: 
239fb915e6 2023-10-19 2541: ---过滤函数,检查以player来看的指定位置是否存在至少count张满足过滤条件f并且不等于ex的卡
239fb915e6 2023-10-19 2542: ---s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2543: ---第7个参数开始为额外参数
239fb915e6 2023-10-19 2544: ---@return boolean
239fb915e6 2023-10-19 2545: ---@param f function|nil
239fb915e6 2023-10-19 2546: ---@param player integer
239fb915e6 2023-10-19 2547: ---@param s integer
239fb915e6 2023-10-19 2548: ---@param o integer
239fb915e6 2023-10-19 2549: ---@param count integer
239fb915e6 2023-10-19 2550: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2551: ---@param ... any
239fb915e6 2023-10-19 2552: function Duel.IsExistingMatchingCard(f,player,s,o,count,ex,...) end
239fb915e6 2023-10-19 2553: 
239fb915e6 2023-10-19 2554: ---过滤函数,让玩家sel_player选择以player来看的指定位置满足过滤条件f并且不等于ex的min-max张卡
239fb915e6 2023-10-19 2555: ---s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2556: ---第9个参数开始为额外参数
239fb915e6 2023-10-19 2557: ---@return Group
239fb915e6 2023-10-19 2558: ---@param sel_player integer
239fb915e6 2023-10-19 2559: ---@param f function|nil
239fb915e6 2023-10-19 2560: ---@param player integer
239fb915e6 2023-10-19 2561: ---@param s integer
239fb915e6 2023-10-19 2562: ---@param o integer
239fb915e6 2023-10-19 2563: ---@param min integer
239fb915e6 2023-10-19 2564: ---@param max integer
239fb915e6 2023-10-19 2565: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2566: ---@param ... any
239fb915e6 2023-10-19 2567: function Duel.SelectMatchingCard(sel_player,f,player,s,o,min,max,ex,...) end
239fb915e6 2023-10-19 2568: 
239fb915e6 2023-10-19 2569: ---返回玩家player可解放(非上级召唤用)的卡片组, use_hand=true 则包括手卡
239fb915e6 2023-10-19 2570: ---@return Group
239fb915e6 2023-10-19 2571: ---@param player integer
239fb915e6 2023-10-19 2572: ---@param use_hand? boolean default: false
239fb915e6 2023-10-19 2573: function Duel.GetReleaseGroup(player,use_hand) end
239fb915e6 2023-10-19 2574: 
239fb915e6 2023-10-19 2575: ---返回玩家player可解放(非上级召唤用)的卡片数量, use_hand=true 则包括手卡
239fb915e6 2023-10-19 2576: ---@return integer
239fb915e6 2023-10-19 2577: ---@param player integer
239fb915e6 2023-10-19 2578: ---@param use_hand? boolean default: false
239fb915e6 2023-10-19 2579: function Duel.GetReleaseGroupCount(player,use_hand) end
239fb915e6 2023-10-19 2580: 
239fb915e6 2023-10-19 2581: ---检查玩家player场上是否存在至少count张满足过滤条件f并且不等于ex的可解放的卡(非上级召唤用)
239fb915e6 2023-10-19 2582: ---第5个参数开始为额外参数
239fb915e6 2023-10-19 2583: ---@return boolean
239fb915e6 2023-10-19 2584: ---@param player integer
239fb915e6 2023-10-19 2585: ---@param f function|nil
239fb915e6 2023-10-19 2586: ---@param count integer
239fb915e6 2023-10-19 2587: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2588: ---@param ... any
239fb915e6 2023-10-19 2589: function Duel.CheckReleaseGroup(player,f,count,ex,...) end
239fb915e6 2023-10-19 2590: 
239fb915e6 2023-10-19 2591: ---过滤函数,让玩家sel_player从场上选择min-max张不等于ex的满足条件f的可解放的卡(非上级召唤用)
239fb915e6 2023-10-19 2592: ---第6个参数开始为额外参数
239fb915e6 2023-10-19 2593: ---@return Group
239fb915e6 2023-10-19 2594: ---@param sel_player integer
239fb915e6 2023-10-19 2595: ---@param f function|nil
239fb915e6 2023-10-19 2596: ---@param min integer
239fb915e6 2023-10-19 2597: ---@param max integer
239fb915e6 2023-10-19 2598: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2599: ---@param ... any
239fb915e6 2023-10-19 2600: function Duel.SelectReleaseGroup(sel_player,f,min,max,ex,...) end
239fb915e6 2023-10-19 2601: 
239fb915e6 2023-10-19 2602: ---检查玩家player场上·手卡是否存在至少count张满足过滤条件f并且不等于ex的可解放的卡(非上级召唤用)
239fb915e6 2023-10-19 2603: ---第5个参数开始为额外参数
239fb915e6 2023-10-19 2604: ---@return boolean
239fb915e6 2023-10-19 2605: ---@param player integer
239fb915e6 2023-10-19 2606: ---@param f function|nil
239fb915e6 2023-10-19 2607: ---@param count integer
239fb915e6 2023-10-19 2608: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2609: ---@param ... any
239fb915e6 2023-10-19 2610: function Duel.CheckReleaseGroupEx(player,f,count,ex,...) end
239fb915e6 2023-10-19 2611: 
239fb915e6 2023-10-19 2612: ---过滤函数,让玩家player从场上·手卡选择min-max张满足过滤条件f并且不等于ex的可解放的卡(非上级召唤用)
239fb915e6 2023-10-19 2613: ---第6个参数开始为额外参数
239fb915e6 2023-10-19 2614: ---@return Group
239fb915e6 2023-10-19 2615: ---@param player integer
239fb915e6 2023-10-19 2616: ---@param f function|nil
239fb915e6 2023-10-19 2617: ---@param min integer
239fb915e6 2023-10-19 2618: ---@param max integer
239fb915e6 2023-10-19 2619: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2620: ---@param ... any
239fb915e6 2023-10-19 2621: function Duel.SelectReleaseGroupEx(player,f,min,max,ex,...) end
239fb915e6 2023-10-19 2622: 
239fb915e6 2023-10-19 2623: ---返回场上用于通常召唤c可解放(上级召唤用)的卡片组
239fb915e6 2023-10-19 2624: ---@return Group
239fb915e6 2023-10-19 2625: ---@param c Card
239fb915e6 2023-10-19 2626: function Duel.GetTributeGroup(c) end
239fb915e6 2023-10-19 2627: 
239fb915e6 2023-10-19 2628: ---返回场上[或mg中]用于通常召唤c的祭品数量,ex=true则允许对方场上的怪兽(太阳神之翼神龙-球体形)
239fb915e6 2023-10-19 2629: ---此数量不一定等于Duel.GetTributeGroup的返回值中的卡片数量
239fb915e6 2023-10-19 2630: ---因为某些卡可以作为多个祭品来使用
239fb915e6 2023-10-19 2631: ---@return integer
239fb915e6 2023-10-19 2632: ---@param c Card
239fb915e6 2023-10-19 2633: ---@param mg? Group
239fb915e6 2023-10-19 2634: ---@param ex? boolean default: false
239fb915e6 2023-10-19 2635: function Duel.GetTributeCount(c,mg,ex) end
239fb915e6 2023-10-19 2636: 
239fb915e6 2023-10-19 2637: ---判断场上[或mg中]是否存在用于通常召唤c[到toplayer场上的区域 zone]的min[到max]个祭品
239fb915e6 2023-10-19 2638: ---@return Group
239fb915e6 2023-10-19 2639: ---@param c Card
239fb915e6 2023-10-19 2640: ---@param min integer
239fb915e6 2023-10-19 2641: ---@param max? integer|nil default: min
239fb915e6 2023-10-19 2642: ---@param mg? Group|nil
239fb915e6 2023-10-19 2643: ---@param toplayer? integer|nil default: c:GetControler()
239fb915e6 2023-10-19 2644: ---@param zone? integer|nil default: 0x1f
239fb915e6 2023-10-19 2645: function Duel.CheckTribute(c,min,max,mg,toplayer,zone) end
239fb915e6 2023-10-19 2646: 
239fb915e6 2023-10-19 2647: ---让玩家player从场上[或mg中]选择用于通常召唤c的min-max个祭品,召唤到 toplayer 场上
239fb915e6 2023-10-19 2648: ---@return Group
239fb915e6 2023-10-19 2649: ---@param player integer
239fb915e6 2023-10-19 2650: ---@param c Card
239fb915e6 2023-10-19 2651: ---@param min integer
239fb915e6 2023-10-19 2652: ---@param max integer
239fb915e6 2023-10-19 2653: ---@param mg? Group|nil
239fb915e6 2023-10-19 2654: ---@param toplayer? integer|nil default: c:GetControler()
239fb915e6 2023-10-19 2655: function Duel.SelectTribute(player,c,min,max,mg,toplayer) end
239fb915e6 2023-10-19 2656: 
239fb915e6 2023-10-19 2657: ---基本同Duel.GetMatchingGroupCount ,不同之处在于需要追加判定卡片是否能成为当前正在处理的效果的对象
239fb915e6 2023-10-19 2658: ---@return integer
239fb915e6 2023-10-19 2659: ---@param f function|nil
239fb915e6 2023-10-19 2660: ---@param player integer
239fb915e6 2023-10-19 2661: ---@param s integer
239fb915e6 2023-10-19 2662: ---@param o integer
239fb915e6 2023-10-19 2663: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2664: ---@param ... any
239fb915e6 2023-10-19 2665: function Duel.GetTargetCount(f,player,s,o,ex,...) end
239fb915e6 2023-10-19 2666: 
239fb915e6 2023-10-19 2667: ---基本同Duel.IsExistingMatchingCard ,不同之处在于需要追加判定卡片是否能成为当前正在处理的效果的对象
239fb915e6 2023-10-19 2668: ---@return boolean
239fb915e6 2023-10-19 2669: ---@param f function|nil
239fb915e6 2023-10-19 2670: ---@param player integer
239fb915e6 2023-10-19 2671: ---@param s integer
239fb915e6 2023-10-19 2672: ---@param o integer
239fb915e6 2023-10-19 2673: ---@param count integer
239fb915e6 2023-10-19 2674: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2675: ---@param ... any
239fb915e6 2023-10-19 2676: function Duel.IsExistingTarget(f,player,s,o,count,ex,...) end
239fb915e6 2023-10-19 2677: 
239fb915e6 2023-10-19 2678: ---基本同Duel.SelectMatchingCard ,不同之处在于此函数会同时将当前正在处理的连锁的对象设置成选择的卡
239fb915e6 2023-10-19 2679: ---@return Group
239fb915e6 2023-10-19 2680: ---@param sel_player integer
239fb915e6 2023-10-19 2681: ---@param f function|nil
239fb915e6 2023-10-19 2682: ---@param player integer
239fb915e6 2023-10-19 2683: ---@param s integer
239fb915e6 2023-10-19 2684: ---@param o integer
239fb915e6 2023-10-19 2685: ---@param min integer
239fb915e6 2023-10-19 2686: ---@param max integer
239fb915e6 2023-10-19 2687: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 2688: ---@param ... any
239fb915e6 2023-10-19 2689: function Duel.SelectTarget(sel_player,f,player,s,o,min,max,ex,...) end
239fb915e6 2023-10-19 2690: 
239fb915e6 2023-10-19 2691: ---返回必须作为素材的卡片组
239fb915e6 2023-10-19 2692: ---@return Group
239fb915e6 2023-10-19 2693: ---@param player integer
239fb915e6 2023-10-19 2694: ---@param ecode integer EFFECT_MUST_BE_FMATERIAL等
239fb915e6 2023-10-19 2695: function Duel.GetMustMaterial(player,ecode) end
239fb915e6 2023-10-19 2696: 
239fb915e6 2023-10-19 2697: ---检查卡片组是否满足必须作为素材的条件
239fb915e6 2023-10-19 2698: ---@return boolean
239fb915e6 2023-10-19 2699: ---@param player integer
239fb915e6 2023-10-19 2700: ---@param cards Group|Card
239fb915e6 2023-10-19 2701: ---@param ecode integer EFFECT_MUST_BE_FMATERIAL等
239fb915e6 2023-10-19 2702: function Duel.CheckMustMaterial(player,cards,ecode) end
239fb915e6 2023-10-19 2703: 
239fb915e6 2023-10-19 2704: ---让玩家player从g中选择一组[必须包含gc在内的]融合怪兽c的融合素材
239fb915e6 2023-10-19 2705: ---##根据c的种类为EFFECT_FUSION_MATERIAL的效果的Operation操作
239fb915e6 2023-10-19 2706: ---@return Group
239fb915e6 2023-10-19 2707: ---@param player integer
239fb915e6 2023-10-19 2708: ---@param c Card
239fb915e6 2023-10-19 2709: ---@param g Group
239fb915e6 2023-10-19 2710: ---@param gc? Card|nil
239fb915e6 2023-10-19 2711: ---@param chkf? integer default: PLAYER_NONE
239fb915e6 2023-10-19 2712: ---@param not_material? boolean default: false
239fb915e6 2023-10-19 2713: function Duel.SelectFusionMaterial(player,c,g,gc,chkf,not_material) end
239fb915e6 2023-10-19 2714: 
239fb915e6 2023-10-19 2715: ---设置g为需要使用的融合素材
239fb915e6 2023-10-19 2716: ---@param g Group
239fb915e6 2023-10-19 2717: function Duel.SetFusionMaterial(g) end
239fb915e6 2023-10-19 2718: 
239fb915e6 2023-10-19 2719: ---设置g为需要使用的同调素材
239fb915e6 2023-10-19 2720: ---@param g Group
239fb915e6 2023-10-19 2721: function Duel.SetSynchroMaterial(g) end
239fb915e6 2023-10-19 2722: 
239fb915e6 2023-10-19 2723: ---获取玩家可以作为同调素材的卡片组
239fb915e6 2023-10-19 2724: ---@return Group
239fb915e6 2023-10-19 2725: ---@param player integer
239fb915e6 2023-10-19 2726: function Duel.GetSynchroMaterial(player) end
239fb915e6 2023-10-19 2727: 
239fb915e6 2023-10-19 2728: ---让玩家player从场上[或mg中]选择用于同调c需要的[必须包含smat在内(如果有mg~=nil则忽略此参数)]满足条件的一组素材
239fb915e6 2023-10-19 2729: ---f1是 1 只需要满足的过滤条件,f2是 min-max 只需要满足的过滤条件
239fb915e6 2023-10-19 2730: ---f1,f2 之中,至少有一种为调整的条件
239fb915e6 2023-10-19 2731: ---@return Group
239fb915e6 2023-10-19 2732: ---@param player integer
239fb915e6 2023-10-19 2733: ---@param c Card
239fb915e6 2023-10-19 2734: ---@param f1 function|nil
239fb915e6 2023-10-19 2735: ---@param f2 function|nil
239fb915e6 2023-10-19 2736: ---@param min integer
239fb915e6 2023-10-19 2737: ---@param max integer
239fb915e6 2023-10-19 2738: ---@param smat? Card|nil
239fb915e6 2023-10-19 2739: ---@param mg? Group|nil
239fb915e6 2023-10-19 2740: function Duel.SelectSynchroMaterial(player,c,f1,f2,min,max,smat,mg) end
239fb915e6 2023-10-19 2741: 
239fb915e6 2023-10-19 2742: ---检查场上[或mg中]是否存在一组[必须包括smat在内的(如果有mg~=nil则忽略此参数)]满足条件的卡作为同调召唤c的素材
239fb915e6 2023-10-19 2743: ---f1是 1 只需要满足的过滤条件,f2是 min-max 只需要满足的过滤条件
239fb915e6 2023-10-19 2744: ---f1,f2 之中,至少有一种为调整的条件
239fb915e6 2023-10-19 2745: ---@return boolean
239fb915e6 2023-10-19 2746: ---@param c Card
239fb915e6 2023-10-19 2747: ---@param f1 function|nil
239fb915e6 2023-10-19 2748: ---@param f2 function|nil
239fb915e6 2023-10-19 2749: ---@param min integer
239fb915e6 2023-10-19 2750: ---@param max integer
239fb915e6 2023-10-19 2751: ---@param smat? Card|nil
239fb915e6 2023-10-19 2752: ---@param mg? Group|nil
239fb915e6 2023-10-19 2753: function Duel.CheckSynchroMaterial(c,f1,f2,min,max,smat,mg) end
239fb915e6 2023-10-19 2754: 
239fb915e6 2023-10-19 2755: ---让玩家从场上[或mg中]选择用于同调c需要的满足条件的以tuner作为调整的min-max张卡的一组素材
239fb915e6 2023-10-19 2756: ---f1是 1 只需要满足的过滤条件,f2是 min-max 只需要满足的过滤条件
239fb915e6 2023-10-19 2757: ---@return Group
239fb915e6 2023-10-19 2758: ---@param player integer
239fb915e6 2023-10-19 2759: ---@param c Card
239fb915e6 2023-10-19 2760: ---@param tuner Card
239fb915e6 2023-10-19 2761: ---@param f1 function|nil
239fb915e6 2023-10-19 2762: ---@param f2 function|nil
239fb915e6 2023-10-19 2763: ---@param min integer
239fb915e6 2023-10-19 2764: ---@param max integer
239fb915e6 2023-10-19 2765: ---@param mg? Group|nil
239fb915e6 2023-10-19 2766: function Duel.SelectTunerMaterial(player,c,tuner,f1,f2,min,max,mg) end
239fb915e6 2023-10-19 2767: 
239fb915e6 2023-10-19 2768: ---检查场上[或mg中]是否存在一组以tuner作为调整,并且满足条件的卡作为同调召唤c的素材
239fb915e6 2023-10-19 2769: ---f1是 1 只需要满足的过滤条件,f2是 min-max 只需要满足的过滤条件
239fb915e6 2023-10-19 2770: ---@return boolean
239fb915e6 2023-10-19 2771: ---@param c Card
239fb915e6 2023-10-19 2772: ---@param tuner Card
239fb915e6 2023-10-19 2773: ---@param f1 function|nil
239fb915e6 2023-10-19 2774: ---@param f2 function|nil
239fb915e6 2023-10-19 2775: ---@param min integer
239fb915e6 2023-10-19 2776: ---@param max integer
239fb915e6 2023-10-19 2777: ---@param mg? Group|nil
239fb915e6 2023-10-19 2778: function Duel.CheckTunerMaterial(c,tuner,f1,f2,min,max,mg) end
239fb915e6 2023-10-19 2779: 
239fb915e6 2023-10-19 2780: ---返回玩家player可用的用于仪式召唤素材的卡片组
239fb915e6 2023-10-19 2781: ---包含手上,场上可解放的以及墓地的仪式魔人等卡
239fb915e6 2023-10-19 2782: ---@return Group
239fb915e6 2023-10-19 2783: ---@param player integer
239fb915e6 2023-10-19 2784: function Duel.GetRitualMaterial(player) end
239fb915e6 2023-10-19 2785: 
239fb915e6 2023-10-19 2786: ---Duel.GetRitualMaterial并包含无等级怪兽
239fb915e6 2023-10-19 2787: ---@return Group
239fb915e6 2023-10-19 2788: ---@param player integer
239fb915e6 2023-10-19 2789: function Duel.GetRitualMaterialEx(player) end
239fb915e6 2023-10-19 2790: 
239fb915e6 2023-10-19 2791: ---解放仪式用的素材g,如果是墓地的仪式魔人等卡则除外
239fb915e6 2023-10-19 2792: ---@param g Group
239fb915e6 2023-10-19 2793: function Duel.ReleaseRitualMaterial(g) end
239fb915e6 2023-10-19 2794: 
239fb915e6 2023-10-19 2795: ---返回玩家player可用的用于融合召唤素材的卡片组
239fb915e6 2023-10-19 2796: ---包含手卡·场上的怪兽的以及受 EFFECT_EXTRA_FUSION_MATERIAL 影响的卡
239fb915e6 2023-10-19 2797: ---@return Group
239fb915e6 2023-10-19 2798: ---@param player integer
239fb915e6 2023-10-19 2799: function Duel.GetFusionMaterial(player) end
239fb915e6 2023-10-19 2800: 
239fb915e6 2023-10-19 2801: ---返回当前进行特殊召唤的行为是否可以回滚并撤销。
239fb915e6 2023-10-19 2802: ---@return boolean
239fb915e6 2023-10-19 2803: function Duel.IsSummonCancelable() end
239fb915e6 2023-10-19 2804: 
239fb915e6 2023-10-19 2805: ---设置Duel.CheckWithSum,Group.CheckSubGroup等函数已选择/必须选择的卡片
239fb915e6 2023-10-19 2806: ---@param cards Card|Group
239fb915e6 2023-10-19 2807: function Duel.SetSelectedCard(cards) end
239fb915e6 2023-10-19 2808: 
239fb915e6 2023-10-19 2809: ---清空并返回由Duel.SetSelectedCard设置的卡片或卡片组。
239fb915e6 2023-10-19 2810: ---@return Group
239fb915e6 2023-10-19 2811: function Duel.GrabSelectedCard() end
239fb915e6 2023-10-19 2812: 
239fb915e6 2023-10-19 2813: ---把当前正在处理的连锁的对象设置成targets
239fb915e6 2023-10-19 2814: ---注,这里的对象指的的广义的对象,包括不取对象的效果可能要处理的对象
239fb915e6 2023-10-19 2815: ---@param targets Card|Group
239fb915e6 2023-10-19 2816: function Duel.SetTargetCard(targets) end
239fb915e6 2023-10-19 2817: 
239fb915e6 2023-10-19 2818: ---把当前正在处理的连锁的对象全部清除
239fb915e6 2023-10-19 2819: function Duel.ClearTargetCard() end
239fb915e6 2023-10-19 2820: 
239fb915e6 2023-10-19 2821: ---把当前正在处理的连锁的对象玩家设置成player
239fb915e6 2023-10-19 2822: ---@param player integer
239fb915e6 2023-10-19 2823: function Duel.SetTargetPlayer(player) end
239fb915e6 2023-10-19 2824: 
239fb915e6 2023-10-19 2825: ---把当前正在处理的连锁的对象参数设置成param
239fb915e6 2023-10-19 2826: ---@param param integer
239fb915e6 2023-10-19 2827: function Duel.SetTargetParam(param) end
239fb915e6 2023-10-19 2828: 
239fb915e6 2023-10-19 2829: ---设置当前处理的连锁的操作信息此操作信息包含了效果处理中确定要处理的效果分类
239fb915e6 2023-10-19 2830: ---比如潜行狙击手需要设置CATEGORY_DICE,但是不能设置CATEGORY_DESTROY,因为不确定
239fb915e6 2023-10-19 2831: ---对于破坏效果,targets需要设置成发动时可能成为连锁的影响对象的卡,
239fb915e6 2023-10-19 2832: ---并设置count为发动时确定的要处理的卡的数量
239fb915e6 2023-10-19 2833: ---比如黑洞发动时,targets需要设定为场上的所有怪兽,count设置成场上的怪的数量
239fb915e6 2023-10-19 2834: ---对于需要移动卡片位置的CATEGORY_SPECIAL_SUMMON,CATEGORY_TOHAND,CATEGORY_TODECK等分类,
239fb915e6 2023-10-19 2835: ---如果要处理的卡是确定的(比如取对象),则设置targets为这些卡,count为数量,
239fb915e6 2023-10-19 2836: ---如果要处理的卡是不确定的(效果处理时才能确定,一般是不取对象的效果),
239fb915e6 2023-10-19 2837: ---	则设置targets为nil,count为预计要处理的卡的数量,
239fb915e6 2023-10-19 2838: ---	target_player为预计要处理的卡的持有者(不确定就为0)
239fb915e6 2023-10-19 2839: ---	target_param为预计要处理的卡的位置
239fb915e6 2023-10-19 2840: ---例如增援:SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
239fb915e6 2023-10-19 2841: ---操作信息用于很多效果的发动的检测,例如星尘龙,王家长眠之谷等
239fb915e6 2023-10-19 2842: ---@param chainc integer
239fb915e6 2023-10-19 2843: ---@param category integer
239fb915e6 2023-10-19 2844: ---@param targets Card|Group|nil|0
239fb915e6 2023-10-19 2845: ---@param count integer
239fb915e6 2023-10-19 2846: ---@param target_player integer
239fb915e6 2023-10-19 2847: ---@param target_param integer
239fb915e6 2023-10-19 2848: function Duel.SetOperationInfo(chainc,category,targets,count,target_player,target_param) end
239fb915e6 2023-10-19 2849: 
239fb915e6 2023-10-19 2850: ---返回连锁chainc的category分类的操作信息,存在的话,则返回值为5个, chainc=0 则是表示当前连锁
239fb915e6 2023-10-19 2851: ---第一个返回值是false的话表示不存在该分类
239fb915e6 2023-10-19 2852: ---后4个返回值对应Duel.SetOperationInfo的后4个参数:Card|Group targets, int count, int target_player, int target_param
239fb915e6 2023-10-19 2853: ---@return boolean
239fb915e6 2023-10-19 2854: ---@return Group|nil
239fb915e6 2023-10-19 2855: ---@return integer|nil
239fb915e6 2023-10-19 2856: ---@return integer|nil
239fb915e6 2023-10-19 2857: ---@return integer|nil
239fb915e6 2023-10-19 2858: ---@param chainc integer
239fb915e6 2023-10-19 2859: ---@param category integer
239fb915e6 2023-10-19 2860: function Duel.GetOperationInfo(chainc,category) end
239fb915e6 2023-10-19 2861: 
239fb915e6 2023-10-19 2862: ---返回连锁chainc包含的操作分类的数量
239fb915e6 2023-10-19 2863: ---@return integer
239fb915e6 2023-10-19 2864: ---@param chainc integer
239fb915e6 2023-10-19 2865: function Duel.GetOperationCount(chainc) end
239fb915e6 2023-10-19 2866: 
239fb915e6 2023-10-19 2867: ---将chainc的OperationInfo清除。用于如堕天使复制并使用墓地效果之类,卡片效果不应当被响应的情况。
239fb915e6 2023-10-19 2868: ---@param chainc integer
239fb915e6 2023-10-19 2869: function Duel.ClearOperationInfo(chainc) end
239fb915e6 2023-10-19 2870: 
239fb915e6 2023-10-19 2871: ---检查场上[或mg中]是否存在XYZ召唤c的XYZ用等级为lv的min-max个满足条件f的叠放素材
239fb915e6 2023-10-19 2872: ---@return boolean
239fb915e6 2023-10-19 2873: ---@param c Card
239fb915e6 2023-10-19 2874: ---@param f function|nil
239fb915e6 2023-10-19 2875: ---@param lv integer
239fb915e6 2023-10-19 2876: ---@param min integer
239fb915e6 2023-10-19 2877: ---@param max integer
239fb915e6 2023-10-19 2878: ---@param mg Group|nil
239fb915e6 2023-10-19 2879: function Duel.CheckXyzMaterial(c,f,lv,min,max,mg) end
239fb915e6 2023-10-19 2880: 
239fb915e6 2023-10-19 2881: ---让玩家player为XYZ怪兽c从场上[或mg中]选择XYZ用等级为lv的min-max个满足条件f的叠放素材
239fb915e6 2023-10-19 2882: ---@return Group
239fb915e6 2023-10-19 2883: ---@param player integer
239fb915e6 2023-10-19 2884: ---@param c Card
239fb915e6 2023-10-19 2885: ---@param f function|nil
239fb915e6 2023-10-19 2886: ---@param lv integer
239fb915e6 2023-10-19 2887: ---@param min integer
239fb915e6 2023-10-19 2888: ---@param max integer
239fb915e6 2023-10-19 2889: ---@param mg? Group|nil
239fb915e6 2023-10-19 2890: function Duel.SelectXyzMaterial(player,c,f,lv,min,max,mg) end
239fb915e6 2023-10-19 2891: 
239fb915e6 2023-10-19 2892: ---把ocard作为c的叠放卡叠放
239fb915e6 2023-10-19 2893: ---@param c Card
239fb915e6 2023-10-19 2894: ---@param ocard Card|Group
239fb915e6 2023-10-19 2895: ---@param adjust? boolean default: true
239fb915e6 2023-10-19 2896: function Duel.Overlay(c,ocard,adjust) end
239fb915e6 2023-10-19 2897: 
239fb915e6 2023-10-19 2898: ---返回以player来看的指定位置的所有叠放的卡
239fb915e6 2023-10-19 2899: ---s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2900: ---@return Group
239fb915e6 2023-10-19 2901: ---@param player integer
239fb915e6 2023-10-19 2902: ---@param s integer
239fb915e6 2023-10-19 2903: ---@param o integer
239fb915e6 2023-10-19 2904: function Duel.GetOverlayGroup(player,s,o) end
239fb915e6 2023-10-19 2905: 
239fb915e6 2023-10-19 2906: ---返回以player来看的指定位置的所有叠放的卡的数量
239fb915e6 2023-10-19 2907: ---s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2908: ---@return integer
239fb915e6 2023-10-19 2909: ---@param player integer
239fb915e6 2023-10-19 2910: ---@param s integer
239fb915e6 2023-10-19 2911: ---@param o integer
239fb915e6 2023-10-19 2912: function Duel.GetOverlayCount(player,s,o) end
239fb915e6 2023-10-19 2913: 
239fb915e6 2023-10-19 2914: ---检查player能否以原因reason移除以player来看的指定位置至少count张卡
239fb915e6 2023-10-19 2915: ---s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2916: ---@return boolean
239fb915e6 2023-10-19 2917: ---@param player integer
239fb915e6 2023-10-19 2918: ---@param s integer
239fb915e6 2023-10-19 2919: ---@param o integer
239fb915e6 2023-10-19 2920: ---@param count integer
239fb915e6 2023-10-19 2921: ---@param reason integer
239fb915e6 2023-10-19 2922: function Duel.CheckRemoveOverlayCard(player,s,o,count,reason) end
239fb915e6 2023-10-19 2923: 
239fb915e6 2023-10-19 2924: ---让player以reason原因移除以player来看的指定位置的min-max张叠放卡,返回值表示是否成功
239fb915e6 2023-10-19 2925: ---s代表以player来看的自己的位置,o代表以player来看的对方的位置
239fb915e6 2023-10-19 2926: ---@return integer
239fb915e6 2023-10-19 2927: ---@param player integer
239fb915e6 2023-10-19 2928: ---@param s integer
239fb915e6 2023-10-19 2929: ---@param o integer
239fb915e6 2023-10-19 2930: ---@param min integer
239fb915e6 2023-10-19 2931: ---@param max integer
239fb915e6 2023-10-19 2932: ---@param reason integer
239fb915e6 2023-10-19 2933: function Duel.RemoveOverlayCard(player,s,o,min,max,reason) end
239fb915e6 2023-10-19 2934: 
239fb915e6 2023-10-19 2935: ---给玩家player发送hint_type类型的消息提示,提示内容为desc
239fb915e6 2023-10-19 2936: ---@param hint_type integer
239fb915e6 2023-10-19 2937: ---@param player integer
239fb915e6 2023-10-19 2938: ---@param desc integer
239fb915e6 2023-10-19 2939: function Duel.Hint(hint_type,player,desc) end
239fb915e6 2023-10-19 2940: 
239fb915e6 2023-10-19 2941: ---手动为g显示被选为对象的动画效果
239fb915e6 2023-10-19 2942: ---@param g Group
239fb915e6 2023-10-19 2943: function Duel.HintSelection(g) end
239fb915e6 2023-10-19 2944: 
239fb915e6 2023-10-19 2945: ---让玩家player选择是否发动卡片c的效果[提示文字可以自行用desc替换,desc 用 aux.Stringid 获取]
239fb915e6 2023-10-19 2946: ---@return boolean
239fb915e6 2023-10-19 2947: ---@param player integer
239fb915e6 2023-10-19 2948: ---@param c Card
239fb915e6 2023-10-19 2949: ---@param desc? integer default: 95
239fb915e6 2023-10-19 2950: function Duel.SelectEffectYesNo(player,c,desc) end
239fb915e6 2023-10-19 2951: 
239fb915e6 2023-10-19 2952: ---让玩家player选择是或否
239fb915e6 2023-10-19 2953: ---@return boolean
239fb915e6 2023-10-19 2954: ---@param player integer
239fb915e6 2023-10-19 2955: ---@param desc integer
239fb915e6 2023-10-19 2956: function Duel.SelectYesNo(player,desc) end
239fb915e6 2023-10-19 2957: 
239fb915e6 2023-10-19 2958: ---让玩家选择选项,从第二个参数开始,每一个参数代表一条选项
239fb915e6 2023-10-19 2959: ---返回选择的选项的序号(从0开始)
239fb915e6 2023-10-19 2960: ---@return integer
239fb915e6 2023-10-19 2961: ---@param player integer
239fb915e6 2023-10-19 2962: ---@param desc1 integer
239fb915e6 2023-10-19 2963: ---@param ... any
239fb915e6 2023-10-19 2964: function Duel.SelectOption(player,desc1,...) end
239fb915e6 2023-10-19 2965: 
239fb915e6 2023-10-19 2966: ---此函数只有一个 check_action_permission 操作,不知何用
239fb915e6 2023-10-19 2967: function Duel.SelectSequence() end
239fb915e6 2023-10-19 2968: 
239fb915e6 2023-10-19 2969: ---让玩家player选择c的表示形式并返回
239fb915e6 2023-10-19 2970: ---@return integer
239fb915e6 2023-10-19 2971: ---@param player integer
239fb915e6 2023-10-19 2972: ---@param c Card
239fb915e6 2023-10-19 2973: ---@param pos integer
239fb915e6 2023-10-19 2974: function Duel.SelectPosition(player,c,pos) end
239fb915e6 2023-10-19 2975: 
239fb915e6 2023-10-19 2976: ---让玩家player选择场地。
239fb915e6 2023-10-19 2977: ---@return integer
239fb915e6 2023-10-19 2978: ---@param player integer
239fb915e6 2023-10-19 2979: ---@param count integer
239fb915e6 2023-10-19 2980: ---@param loc1 integer
239fb915e6 2023-10-19 2981: ---@param loc2 integer
239fb915e6 2023-10-19 2982: ---@param zone integer
239fb915e6 2023-10-19 2983: ---@param code? integer
239fb915e6 2023-10-19 2984: function Duel.SelectField(player,count,loc1,loc2,zone,code) end
239fb915e6 2023-10-19 2985: 
239fb915e6 2023-10-19 2986: ---让玩家player选择指定位置满足标记条件filter的count个可用的空格,并返回选择位置的标记
239fb915e6 2023-10-19 2987: ---常用于选择区域不能使用或移动怪兽格子
239fb915e6 2023-10-19 2988: ---##位置标记的定义如下
239fb915e6 2023-10-19 2989: ---##flag = 0;
239fb915e6 2023-10-19 2990: ---##seq为在玩家p,位置l中选择的格子序号
239fb915e6 2023-10-19 2991: ---##for(int32 i = 0; i < count; ++i) {
239fb915e6 2023-10-19 2992: ---##	flag |= 1 << (seq[i] + (p[i] == player ? 0 : 16) + (l[i] == LOCATION_MZONE ? 0 : 8));
239fb915e6 2023-10-19 2993: ---##}
239fb915e6 2023-10-19 2994: ---@return integer
239fb915e6 2023-10-19 2995: ---@param player integer
239fb915e6 2023-10-19 2996: ---@param count integer
239fb915e6 2023-10-19 2997: ---@param s integer
239fb915e6 2023-10-19 2998: ---@param o integer
239fb915e6 2023-10-19 2999: ---@param filter integer
239fb915e6 2023-10-19 3000: function Duel.SelectDisableField(player,count,s,o,filter) end
239fb915e6 2023-10-19 3001: 
239fb915e6 2023-10-19 3002: ---让玩家player从可选的种族中宣言count个种族
239fb915e6 2023-10-19 3003: ---available是所有可选种族的组合值,可以自行组合
239fb915e6 2023-10-19 3004: ---@return integer
239fb915e6 2023-10-19 3005: ---@param player integer
239fb915e6 2023-10-19 3006: ---@param count integer
239fb915e6 2023-10-19 3007: ---@param available integer
239fb915e6 2023-10-19 3008: function Duel.AnnounceRace(player,count,available) end
239fb915e6 2023-10-19 3009: 
239fb915e6 2023-10-19 3010: ---让玩家player从可选的属性中宣言count个属性
239fb915e6 2023-10-19 3011: ---available是所有可选属性的组合值,可以自行组合
239fb915e6 2023-10-19 3012: ---@return integer
239fb915e6 2023-10-19 3013: ---@param player integer
239fb915e6 2023-10-19 3014: ---@param count integer
239fb915e6 2023-10-19 3015: ---@param available integer
239fb915e6 2023-10-19 3016: function Duel.AnnounceAttribute(player,count,available) end
239fb915e6 2023-10-19 3017: 
239fb915e6 2023-10-19 3018: ---让玩家宣言一个[min-max]等级并返回
239fb915e6 2023-10-19 3019: ---@return integer
239fb915e6 2023-10-19 3020: ---@param player integer
239fb915e6 2023-10-19 3021: ---@param min? integer|nil default: 1
239fb915e6 2023-10-19 3022: ---@param max? integer|nil default: 12
239fb915e6 2023-10-19 3023: ---@param ...? integer
239fb915e6 2023-10-19 3024: function Duel.AnnounceLevel(player,min,max,...) end
239fb915e6 2023-10-19 3025: 
239fb915e6 2023-10-19 3026: ---让玩家player宣言一个满足条件的卡片卡号,条件用后缀表达式...表示
239fb915e6 2023-10-19 3027: ---原名AnnounceCardFilter
239fb915e6 2023-10-19 3028: ---@return integer
239fb915e6 2023-10-19 3029: ---@param player integer
239fb915e6 2023-10-19 3030: ---@param ...? integer
239fb915e6 2023-10-19 3031: function Duel.AnnounceCard(player,...) end
239fb915e6 2023-10-19 3032: 
239fb915e6 2023-10-19 3033: ---让玩家player宣言一个卡片类型(怪兽·魔法·陷阱)
239fb915e6 2023-10-19 3034: ---别想着直接宣言 复合类型(永续魔法 等)
239fb915e6 2023-10-19 3035: ---@return integer
239fb915e6 2023-10-19 3036: ---@param player integer
239fb915e6 2023-10-19 3037: function Duel.AnnounceType(player) end
239fb915e6 2023-10-19 3038: 
239fb915e6 2023-10-19 3039: ---让玩家player宣言一个数字
239fb915e6 2023-10-19 3040: ---从第二个参数开始,每一个参数代表一个可宣言的数字
239fb915e6 2023-10-19 3041: ---第一个返回值是宣言的数字,第二个返回值是宣言数字在所有选项中的位置
239fb915e6 2023-10-19 3042: ---@return integer
239fb915e6 2023-10-19 3043: ---@return integer
239fb915e6 2023-10-19 3044: ---@param player integer
239fb915e6 2023-10-19 3045: ---@param number integer
239fb915e6 2023-10-19 3046: ---@param ... any
239fb915e6 2023-10-19 3047: function Duel.AnnounceNumber(player,number,...) end
239fb915e6 2023-10-19 3048: 
239fb915e6 2023-10-19 3049: ---让玩家player宣言硬币的正反面
239fb915e6 2023-10-19 3050: ---@return integer
239fb915e6 2023-10-19 3051: ---@param player integer
239fb915e6 2023-10-19 3052: function Duel.AnnounceCoin(player) end
239fb915e6 2023-10-19 3053: 
239fb915e6 2023-10-19 3054: ---让玩家player投count(<=20)次硬币,返回值为count个结果,0或者1, 正面是 1,反面是0
239fb915e6 2023-10-19 3055: ---若count=-1,投硬币直到出現反面,返回值為投擲次數
239fb915e6 2023-10-19 3056: ---@return ...
239fb915e6 2023-10-19 3057: ---@param player integer
239fb915e6 2023-10-19 3058: ---@param count integer
239fb915e6 2023-10-19 3059: function Duel.TossCoin(player,count) end
239fb915e6 2023-10-19 3060: 
239fb915e6 2023-10-19 3061: ---让玩家player投count1次骰子[,1-player投count2次骰子](count1+count2<=5)
239fb915e6 2023-10-19 3062: ---返回值为count1+count2个结果,1-6
239fb915e6 2023-10-19 3063: ---@return ...
239fb915e6 2023-10-19 3064: ---@param player integer
239fb915e6 2023-10-19 3065: ---@param count1 integer
239fb915e6 2023-10-19 3066: ---@param count2? integer
239fb915e6 2023-10-19 3067: function Duel.TossDice(player,count1,count2) end
239fb915e6 2023-10-19 3068: 
239fb915e6 2023-10-19 3069: ---猜拳,若 repeated=false 则只猜一次;否则就是直到分出胜负为止。返回胜利的玩家号码
239fb915e6 2023-10-19 3070: ---@return integer
239fb915e6 2023-10-19 3071: ---@param repeated? boolean default: true
239fb915e6 2023-10-19 3072: function Duel.RockPaperScissors(repeated) end
239fb915e6 2023-10-19 3073: 
239fb915e6 2023-10-19 3074: ---返回当前投硬币的结果
239fb915e6 2023-10-19 3075: ---@return integer
239fb915e6 2023-10-19 3076: ---@return integer
239fb915e6 2023-10-19 3077: ---@return integer
239fb915e6 2023-10-19 3078: ---@return integer
239fb915e6 2023-10-19 3079: ---@return integer
239fb915e6 2023-10-19 3080: function Duel.GetCoinResult() end
239fb915e6 2023-10-19 3081: 
239fb915e6 2023-10-19 3082: ---返回当前掷骰子的结果
239fb915e6 2023-10-19 3083: ---@return integer
239fb915e6 2023-10-19 3084: ---@return integer
239fb915e6 2023-10-19 3085: ---@return integer
239fb915e6 2023-10-19 3086: ---@return integer
239fb915e6 2023-10-19 3087: ---@return integer
239fb915e6 2023-10-19 3088: function Duel.GetDiceResult() end
239fb915e6 2023-10-19 3089: 
239fb915e6 2023-10-19 3090: ---强行修改投硬币的结果为res ,最多5个参数,res只能是 0 或 1, ,其他全算作 0
239fb915e6 2023-10-19 3091: ---此函数用于永续的EVENT_TOSS_COIN事件中
239fb915e6 2023-10-19 3092: ---@param res integer
239fb915e6 2023-10-19 3093: ---@param ... any
239fb915e6 2023-10-19 3094: function Duel.SetCoinResult(res,...) end
239fb915e6 2023-10-19 3095: 
239fb915e6 2023-10-19 3096: ---强行修改投骰子的结果为res ,最多5个参数,res只能是 1~255, ,其他数字全算作 1
239fb915e6 2023-10-19 3097: ---此函数用于永续的EVENT_TOSS_DICE事件中
239fb915e6 2023-10-19 3098: ---@param res integer
239fb915e6 2023-10-19 3099: ---@param ... any
239fb915e6 2023-10-19 3100: function Duel.SetDiceResult(res,...) end
239fb915e6 2023-10-19 3101: 
239fb915e6 2023-10-19 3102: ---检查player是否受到种类为code的效果影响,如果有就返回该效果,没有则返回nil
239fb915e6 2023-10-19 3103: ---@return Effect|nil
239fb915e6 2023-10-19 3104: ---@return ...
239fb915e6 2023-10-19 3105: ---@param player integer
239fb915e6 2023-10-19 3106: ---@param code integer
239fb915e6 2023-10-19 3107: function Duel.IsPlayerAffectedByEffect(player,code) end
239fb915e6 2023-10-19 3108: 
239fb915e6 2023-10-19 3109: ---检查玩家player是否可以效果抽[count张]卡
239fb915e6 2023-10-19 3110: ---@return boolean
239fb915e6 2023-10-19 3111: ---@param player integer
239fb915e6 2023-10-19 3112: ---@param count? integer default: 0
239fb915e6 2023-10-19 3113: function Duel.IsPlayerCanDraw(player,count) end
239fb915e6 2023-10-19 3114: 
239fb915e6 2023-10-19 3115: ---检查玩家player是否可以把卡组顶端count张卡送去墓地
239fb915e6 2023-10-19 3116: ---@return boolean
239fb915e6 2023-10-19 3117: ---@param player integer
239fb915e6 2023-10-19 3118: ---@param count integer
239fb915e6 2023-10-19 3119: function Duel.IsPlayerCanDiscardDeck(player,count) end
239fb915e6 2023-10-19 3120: 
239fb915e6 2023-10-19 3121: ---检查玩家player是否能作为Cost把count张卡送去墓地。
239fb915e6 2023-10-19 3122: ---@return boolean
239fb915e6 2023-10-19 3123: ---@param player integer
239fb915e6 2023-10-19 3124: ---@param count integer
239fb915e6 2023-10-19 3125: function Duel.IsPlayerCanDiscardDeckAsCost(player,count) end
239fb915e6 2023-10-19 3126: 
239fb915e6 2023-10-19 3127: ---检查玩家player是否可以通常召唤[c,以sumtype方式]
239fb915e6 2023-10-19 3128: ---如果需要可选参数,则必须全部使用
239fb915e6 2023-10-19 3129: ---仅当玩家收到“不能上级召唤”等效果的影响时返回false
239fb915e6 2023-10-19 3130: ---@return boolean
239fb915e6 2023-10-19 3131: ---@param player integer
239fb915e6 2023-10-19 3132: ---@param sumtype? integer
239fb915e6 2023-10-19 3133: ---@param c? Card
239fb915e6 2023-10-19 3134: function Duel.IsPlayerCanSummon(player,sumtype,c) end
239fb915e6 2023-10-19 3135: 
239fb915e6 2023-10-19 3136: ---检查玩家player是否可以[以sumtype的召唤方式将scard]盖放。
239fb915e6 2023-10-19 3137: ---如果要加入后面的可选参数,则所有两个可选参数都必须加上。
239fb915e6 2023-10-19 3138: ---@return boolean
239fb915e6 2023-10-19 3139: ---@param player integer
239fb915e6 2023-10-19 3140: ---@param sumtype? integer
239fb915e6 2023-10-19 3141: ---@param scard? Card
239fb915e6 2023-10-19 3142: function Duel.IsPlayerCanMSet(player,sumtype,scard) end
239fb915e6 2023-10-19 3143: 
239fb915e6 2023-10-19 3144: ---检查玩家player是否可以[将scard]盖放。
239fb915e6 2023-10-19 3145: ---@return boolean
239fb915e6 2023-10-19 3146: ---@param player integer
239fb915e6 2023-10-19 3147: ---@param scard? Card
239fb915e6 2023-10-19 3148: function Duel.IsPlayerCanSSet(player,scard) end
239fb915e6 2023-10-19 3149: 
239fb915e6 2023-10-19 3150: ---检查玩家player能否特殊召唤[c到target_player场上,以sumtype召唤方式,sumpos表示形式]
239fb915e6 2023-10-19 3151: ---如果需要可选参数,则必须全部使用
239fb915e6 2023-10-19 3152: ---@return boolean
239fb915e6 2023-10-19 3153: ---@param player integer
239fb915e6 2023-10-19 3154: ---@param sumtype? integer
239fb915e6 2023-10-19 3155: ---@param sumpos? integer
239fb915e6 2023-10-19 3156: ---@param target_player? integer
239fb915e6 2023-10-19 3157: ---@param c? Card
239fb915e6 2023-10-19 3158: function Duel.IsPlayerCanSpecialSummon(player,sumtype,sumpos,target_player,c) end
239fb915e6 2023-10-19 3159: 
239fb915e6 2023-10-19 3160: ---检查玩家player是否可以反转召唤c
239fb915e6 2023-10-19 3161: ---@return boolean
239fb915e6 2023-10-19 3162: ---@param player integer
239fb915e6 2023-10-19 3163: ---@param c Card
239fb915e6 2023-10-19 3164: function Duel.IsPlayerCanFlipSummon(player,c) end
239fb915e6 2023-10-19 3165: 
239fb915e6 2023-10-19 3166: ---检查玩家player是否可以[以sumtype 方式][以 pos 表示形式]特殊召唤 给定参数的怪兽到target_player场上
239fb915e6 2023-10-19 3167: ---此函数通常用于判定是否可以特招token和陷阱怪兽
239fb915e6 2023-10-19 3168: ---@return boolean
239fb915e6 2023-10-19 3169: ---@param player integer
239fb915e6 2023-10-19 3170: ---@param code integer
239fb915e6 2023-10-19 3171: ---@param setcode? integer|nil
239fb915e6 2023-10-19 3172: ---@param type? integer|nil
239fb915e6 2023-10-19 3173: ---@param atk? integer|nil
239fb915e6 2023-10-19 3174: ---@param def? integer|nil
239fb915e6 2023-10-19 3175: ---@param level? integer|nil
239fb915e6 2023-10-19 3176: ---@param race? integer|nil
239fb915e6 2023-10-19 3177: ---@param attribute? integer|nil
239fb915e6 2023-10-19 3178: ---@param pos? integer default: POS_FACEUP
239fb915e6 2023-10-19 3179: ---@param target_player? integer default: player
239fb915e6 2023-10-19 3180: ---@param sumtype? integer default: 0
239fb915e6 2023-10-19 3181: ---@param zone? integer
239fb915e6 2023-10-19 3182: function Duel.IsPlayerCanSpecialSummonMonster(player,code,setcode,type,atk,def,level,race,attribute,pos,target_player,sumtype,zone) end
239fb915e6 2023-10-19 3183: 
239fb915e6 2023-10-19 3184: ---检查玩家player能否特殊召唤count次
239fb915e6 2023-10-19 3185: ---@return boolean
239fb915e6 2023-10-19 3186: ---@param player integer
239fb915e6 2023-10-19 3187: ---@param count integer
239fb915e6 2023-10-19 3188: function Duel.IsPlayerCanSpecialSummonCount(player,count) end
239fb915e6 2023-10-19 3189: 
239fb915e6 2023-10-19 3190: ---检查玩家player是否能解放c
239fb915e6 2023-10-19 3191: ---@return boolean
239fb915e6 2023-10-19 3192: ---@param player integer
239fb915e6 2023-10-19 3193: ---@param c? Card
239fb915e6 2023-10-19 3194: function Duel.IsPlayerCanRelease(player,c) end
239fb915e6 2023-10-19 3195: 
239fb915e6 2023-10-19 3196: ---检查玩家player是否能除外c
239fb915e6 2023-10-19 3197: ---@return boolean
239fb915e6 2023-10-19 3198: ---@param player integer
239fb915e6 2023-10-19 3199: ---@param c? Card
239fb915e6 2023-10-19 3200: function Duel.IsPlayerCanRemove(player,c) end
239fb915e6 2023-10-19 3201: 
239fb915e6 2023-10-19 3202: ---检查玩家是否能把c送去手卡
239fb915e6 2023-10-19 3203: ---@return boolean
239fb915e6 2023-10-19 3204: ---@param player integer
239fb915e6 2023-10-19 3205: ---@param c Card
239fb915e6 2023-10-19 3206: function Duel.IsPlayerCanSendtoHand(player,c) end
239fb915e6 2023-10-19 3207: 
239fb915e6 2023-10-19 3208: ---检查玩家是否能把c送去墓地
239fb915e6 2023-10-19 3209: ---@return boolean
239fb915e6 2023-10-19 3210: ---@param player integer
239fb915e6 2023-10-19 3211: ---@param c? Card
239fb915e6 2023-10-19 3212: function Duel.IsPlayerCanSendtoGrave(player,c) end
239fb915e6 2023-10-19 3213: 
239fb915e6 2023-10-19 3214: ---检查玩家是否能把c送去卡组
239fb915e6 2023-10-19 3215: ---@return boolean
239fb915e6 2023-10-19 3216: ---@param player integer
239fb915e6 2023-10-19 3217: ---@param c Card
239fb915e6 2023-10-19 3218: function Duel.IsPlayerCanSendtoDeck(player,c) end
239fb915e6 2023-10-19 3219: 
239fb915e6 2023-10-19 3220: ---检查玩家player是否有通常召唤外的召唤次数。
239fb915e6 2023-10-19 3221: ---@return boolean
239fb915e6 2023-10-19 3222: ---@param player integer
239fb915e6 2023-10-19 3223: function Duel.IsPlayerCanAdditionalSummon(player) end
239fb915e6 2023-10-19 3224: 
239fb915e6 2023-10-19 3225: ---检查连锁chainc的发动能否被无效
239fb915e6 2023-10-19 3226: ---@return boolean
239fb915e6 2023-10-19 3227: ---@param chainc integer
239fb915e6 2023-10-19 3228: function Duel.IsChainNegatable(chainc) end
239fb915e6 2023-10-19 3229: 
239fb915e6 2023-10-19 3230: ---检查连锁chainc的效果能否被无效
239fb915e6 2023-10-19 3231: ---@return boolean
239fb915e6 2023-10-19 3232: ---@param chainc integer
239fb915e6 2023-10-19 3233: function Duel.IsChainDisablable(chainc) end
239fb915e6 2023-10-19 3234: 
239fb915e6 2023-10-19 3235: ---检查连锁chainc是否已被无效
239fb915e6 2023-10-19 3236: ---@return boolean
239fb915e6 2023-10-19 3237: ---@param chainc integer
239fb915e6 2023-10-19 3238: function Duel.IsChainDisabled(chainc) end
239fb915e6 2023-10-19 3239: 
239fb915e6 2023-10-19 3240: ---检查c是否是连锁chainc的效果的正确的对象
239fb915e6 2023-10-19 3241: ---@return boolean
239fb915e6 2023-10-19 3242: ---@param chainc integer
239fb915e6 2023-10-19 3243: ---@param c Card
239fb915e6 2023-10-19 3244: function Duel.CheckChainTarget(chainc,c) end
239fb915e6 2023-10-19 3245: 
239fb915e6 2023-10-19 3246: ---检查当前连锁中是否存在同名卡的发动,返回true表示无同名卡
239fb915e6 2023-10-19 3247: ---@return boolean
239fb915e6 2023-10-19 3248: function Duel.CheckChainUniqueness() end
239fb915e6 2023-10-19 3249: 
239fb915e6 2023-10-19 3250: ---返回player进行对应的activity_type操作的次数
239fb915e6 2023-10-19 3251: ---@return integer
239fb915e6 2023-10-19 3252: ---@return ...
239fb915e6 2023-10-19 3253: ---@param player integer
239fb915e6 2023-10-19 3254: ---@param activity_type integer
239fb915e6 2023-10-19 3255: ---@param ... any
239fb915e6 2023-10-19 3256: function Duel.GetActivityCount(player,activity_type,...) end
239fb915e6 2023-10-19 3257: 
239fb915e6 2023-10-19 3258: ---检查玩家在当前阶段是否有操作(是否处于阶段开始时,如七皇之剑)
239fb915e6 2023-10-19 3259: ---@return boolean
239fb915e6 2023-10-19 3260: function Duel.CheckPhaseActivity() end
239fb915e6 2023-10-19 3261: 
239fb915e6 2023-10-19 3262: ---设置操作类型为activity_type、代号为counter_id的计数器,放在initial_effect函数内
239fb915e6 2023-10-19 3263: ---f为过滤函数,以Card类型为参数,返回值为false的卡片进行以下类型的操作,计数器增加1(目前最多为1)
239fb915e6 2023-10-19 3264: ---@param counter_id integer
239fb915e6 2023-10-19 3265: ---@param activity_type integer
239fb915e6 2023-10-19 3266: ---@param f function
239fb915e6 2023-10-19 3267: function Duel.AddCustomActivityCounter(counter_id,activity_type,f) end
239fb915e6 2023-10-19 3268: 
239fb915e6 2023-10-19 3269: ---代号为counter_id的计数器的计数,返回player进行以下操作的次数(目前最多为1)
239fb915e6 2023-10-19 3270: ---@return integer
239fb915e6 2023-10-19 3271: ---@param counter_id integer
239fb915e6 2023-10-19 3272: ---@param player integer
239fb915e6 2023-10-19 3273: ---@param activity_type integer
239fb915e6 2023-10-19 3274: function Duel.GetCustomActivityCount(counter_id,player,activity_type) end
239fb915e6 2023-10-19 3275: 
239fb915e6 2023-10-19 3276: ---返回玩家player这回合战斗过的次数
239fb915e6 2023-10-19 3277: ---@return integer
239fb915e6 2023-10-19 3278: ---@param player integer
239fb915e6 2023-10-19 3279: function Duel.GetBattledCount(player) end
239fb915e6 2023-10-19 3280: 
239fb915e6 2023-10-19 3281: ---检查回合玩家能否进入战斗阶段
239fb915e6 2023-10-19 3282: ---@return boolean
239fb915e6 2023-10-19 3283: function Duel.IsAbleToEnterBP() end
239fb915e6 2023-10-19 3284: 
239fb915e6 2023-10-19 3285: ---现世与冥界的逆转专用。把玩家player的卡组和墓地交换
239fb915e6 2023-10-19 3286: ---@param player integer
239fb915e6 2023-10-19 3287: function Duel.SwapDeckAndGrave(player) end
239fb915e6 2023-10-19 3288: 
239fb915e6 2023-10-19 3289: ---救世星龙专用。把c2记述的效果复制给c1
239fb915e6 2023-10-19 3290: ---强制发动的效果可以选择是否发动
239fb915e6 2023-10-19 3291: ---@param c1 Card
239fb915e6 2023-10-19 3292: ---@param c2 Card
239fb915e6 2023-10-19 3293: function Duel.MajesticCopy(c1,c2) end
239fb915e6 2023-10-19 3294: 
239fb915e6 2023-10-19 3295: ---新建一个空效果
239fb915e6 2023-10-19 3296: ---并且效果的Owner为c
239fb915e6 2023-10-19 3297: ---@return Effect
239fb915e6 2023-10-19 3298: ---@param c Card
239fb915e6 2023-10-19 3299: function Effect.CreateEffect(c) end
239fb915e6 2023-10-19 3300: 
239fb915e6 2023-10-19 3301: ---新建一个全局效果
239fb915e6 2023-10-19 3302: ---@return Effect
239fb915e6 2023-10-19 3303: function Effect.GlobalEffect() end
239fb915e6 2023-10-19 3304: 
239fb915e6 2023-10-19 3305: ---新建一个效果e的副本
239fb915e6 2023-10-19 3306: ---@return Effect
239fb915e6 2023-10-19 3307: ---@param e Effect
239fb915e6 2023-10-19 3308: function Effect.Clone(e) end
239fb915e6 2023-10-19 3309: 
239fb915e6 2023-10-19 3310: ---把效果e重置,重置之后不可以再使用此效果
239fb915e6 2023-10-19 3311: ---@param e Effect
239fb915e6 2023-10-19 3312: function Effect.Reset(e) end
239fb915e6 2023-10-19 3313: 
239fb915e6 2023-10-19 3314: ---获取效果e的id
239fb915e6 2023-10-19 3315: ---@return integer
239fb915e6 2023-10-19 3316: ---@param e Effect
239fb915e6 2023-10-19 3317: function Effect.GetFieldID(e) end
239fb915e6 2023-10-19 3318: 
239fb915e6 2023-10-19 3319: ---为效果e设置效果描述
239fb915e6 2023-10-19 3320: ---@param e Effect
239fb915e6 2023-10-19 3321: ---@param desc integer
239fb915e6 2023-10-19 3322: function Effect.SetDescription(e,desc) end
239fb915e6 2023-10-19 3323: 
239fb915e6 2023-10-19 3324: ---为效果e设置Code属性
239fb915e6 2023-10-19 3325: ---@param e Effect
239fb915e6 2023-10-19 3326: ---@param code integer
239fb915e6 2023-10-19 3327: function Effect.SetCode(e,code) end
239fb915e6 2023-10-19 3328: 
239fb915e6 2023-10-19 3329: ---为效果e设置Range属性,即e的生效位置
239fb915e6 2023-10-19 3330: ---@param e Effect
239fb915e6 2023-10-19 3331: ---@param range integer
239fb915e6 2023-10-19 3332: function Effect.SetRange(e,range) end
239fb915e6 2023-10-19 3333: 
239fb915e6 2023-10-19 3334: ---为效果e设置Target Range属性
239fb915e6 2023-10-19 3335: ---	s_range指影响的我方区域
239fb915e6 2023-10-19 3336: ---	o_range值影响的对方区域
239fb915e6 2023-10-19 3337: ---	如果property属性中指定了EFFECT_FLAG_ABSOLUTE_RANGE标志,
239fb915e6 2023-10-19 3338: ---		那么s_range指玩家1受到影响的区域,o_range指玩家2受到影响的区域
239fb915e6 2023-10-19 3339: ---	如果这是一个召唤(覆盖)/限制召唤(覆盖)/特殊召唤手续
239fb915e6 2023-10-19 3340: ---	(EFFECT_SUMMON_PROC/EFFECT_LIMIT_SUMMON_PROC/EFFECT_SPSUMMON_PROC等)的效果,
239fb915e6 2023-10-19 3341: ---		并且property指定了EFFECT_FLAG_SPSUM_PARAM标志,
239fb915e6 2023-10-19 3342: ---		那么s_range表示特殊召唤到的哪个玩家的场地,
239fb915e6 2023-10-19 3343: ---	o_range表示可选择的表示形式
239fb915e6 2023-10-19 3344: ---@param e Effect
239fb915e6 2023-10-19 3345: ---@param s_range integer
239fb915e6 2023-10-19 3346: ---@param o_range integer
239fb915e6 2023-10-19 3347: function Effect.SetTargetRange(e,s_range,o_range) end
239fb915e6 2023-10-19 3348: 
239fb915e6 2023-10-19 3349: ---设置target range属性并设置 EFFECT_FLAG_ABSOLUTE_TARGET 标志
239fb915e6 2023-10-19 3350: ---	playerid != 0 s_range和o_range反转
239fb915e6 2023-10-19 3351: ---@param e Effect
239fb915e6 2023-10-19 3352: ---@param playerid integer
239fb915e6 2023-10-19 3353: ---@param s_range integer
239fb915e6 2023-10-19 3354: ---@param o_range integer
239fb915e6 2023-10-19 3355: function Effect.SetAbsoluteRange(e,playerid,s_range,o_range) end
239fb915e6 2023-10-19 3356: 
239fb915e6 2023-10-19 3357: ---设置一回合可以发动的次数count(仅触发型效果有效),相同的code(不等于0或1时)共用1个次数
239fb915e6 2023-10-19 3358: ---code包含以下数值具有特殊的性质
239fb915e6 2023-10-19 3359: ---EFFECT_COUNT_CODE_OATH          誓约使用次数
239fb915e6 2023-10-19 3360: ---EFFECT_COUNT_CODE_DUEL          决斗中使用次数
239fb915e6 2023-10-19 3361: ---EFFECT_COUNT_CODE_SINGLE        同一张卡多个效果公共使用次数(不限制同名卡)
239fb915e6 2023-10-19 3362: ---@param e Effect
239fb915e6 2023-10-19 3363: ---@param count integer default: 1
239fb915e6 2023-10-19 3364: ---@param code? integer default: 0
239fb915e6 2023-10-19 3365: function Effect.SetCountLimit(e,count,code) end
239fb915e6 2023-10-19 3366: 
239fb915e6 2023-10-19 3367: ---设置reset参数
239fb915e6 2023-10-19 3368: ---@param e Effect
239fb915e6 2023-10-19 3369: ---@param reset_flag integer
239fb915e6 2023-10-19 3370: ---@param reset_count? integer default: 1
239fb915e6 2023-10-19 3371: function Effect.SetReset(e,reset_flag,reset_count) end
239fb915e6 2023-10-19 3372: 
239fb915e6 2023-10-19 3373: ---为效果e设置Type属性
239fb915e6 2023-10-19 3374: ---@param e Effect
239fb915e6 2023-10-19 3375: ---@param type integer
239fb915e6 2023-10-19 3376: function Effect.SetType(e,type) end
239fb915e6 2023-10-19 3377: 
239fb915e6 2023-10-19 3378: ---设置Property属性
239fb915e6 2023-10-19 3379: ---@param e Effect
239fb915e6 2023-10-19 3380: ---@param prop1 integer
239fb915e6 2023-10-19 3381: ---@param prop2? integer
239fb915e6 2023-10-19 3382: function Effect.SetProperty(e,prop1,prop2) end
239fb915e6 2023-10-19 3383: 
239fb915e6 2023-10-19 3384: ---设置Label属性
239fb915e6 2023-10-19 3385: ---@param e Effect
239fb915e6 2023-10-19 3386: ---@param ... integer
239fb915e6 2023-10-19 3387: function Effect.SetLabel(e,...) end
239fb915e6 2023-10-19 3388: 
239fb915e6 2023-10-19 3389: ---设置LabelObject属性
239fb915e6 2023-10-19 3390: ---@param e Effect
239fb915e6 2023-10-19 3391: ---@param labelobject Card|Group|Effect
239fb915e6 2023-10-19 3392: function Effect.SetLabelObject(e,labelobject) end
239fb915e6 2023-10-19 3393: 
239fb915e6 2023-10-19 3394: ---设置Category属性
239fb915e6 2023-10-19 3395: ---@param e Effect
239fb915e6 2023-10-19 3396: ---@param cate integer
239fb915e6 2023-10-19 3397: function Effect.SetCategory(e,cate) end
239fb915e6 2023-10-19 3398: 
239fb915e6 2023-10-19 3399: ---设置提示时点,第二个和第三个参数分别表示 自己 和对方的回合
239fb915e6 2023-10-19 3400: ---@param e Effect
239fb915e6 2023-10-19 3401: ---@param s_time integer
239fb915e6 2023-10-19 3402: ---@param o_time? integer default: s_time
239fb915e6 2023-10-19 3403: function Effect.SetHintTiming(e,s_time,o_time) end
239fb915e6 2023-10-19 3404: 
239fb915e6 2023-10-19 3405: ---设置Condition属性
239fb915e6 2023-10-19 3406: ---@param e Effect
239fb915e6 2023-10-19 3407: ---@param con_func function
239fb915e6 2023-10-19 3408: function Effect.SetCondition(e,con_func) end
239fb915e6 2023-10-19 3409: 
239fb915e6 2023-10-19 3410: ---设置Target属性
239fb915e6 2023-10-19 3411: ---@param e Effect
239fb915e6 2023-10-19 3412: ---@param targ_func function
239fb915e6 2023-10-19 3413: function Effect.SetTarget(e,targ_func) end
239fb915e6 2023-10-19 3414: 
239fb915e6 2023-10-19 3415: ---设置Cost属性
239fb915e6 2023-10-19 3416: ---@param e Effect
239fb915e6 2023-10-19 3417: ---@param cost_func function
239fb915e6 2023-10-19 3418: function Effect.SetCost(e,cost_func) end
239fb915e6 2023-10-19 3419: 
239fb915e6 2023-10-19 3420: ---设置Value属性
239fb915e6 2023-10-19 3421: ---@param e Effect
239fb915e6 2023-10-19 3422: ---@param val function|integer|boolean
239fb915e6 2023-10-19 3423: function Effect.SetValue(e,val) end
239fb915e6 2023-10-19 3424: 
239fb915e6 2023-10-19 3425: ---设置Operation属性
239fb915e6 2023-10-19 3426: ---@param e Effect
239fb915e6 2023-10-19 3427: ---@param op_func nil|function
239fb915e6 2023-10-19 3428: function Effect.SetOperation(e,op_func) end
239fb915e6 2023-10-19 3429: 
239fb915e6 2023-10-19 3430: ---设置OwnerPlayer属性为player
239fb915e6 2023-10-19 3431: ---@param e Effect
239fb915e6 2023-10-19 3432: ---@param player? integer default: 0
239fb915e6 2023-10-19 3433: function Effect.SetOwnerPlayer(e,player) end
239fb915e6 2023-10-19 3434: 
239fb915e6 2023-10-19 3435: ---返回效果描述
239fb915e6 2023-10-19 3436: ---@return integer
239fb915e6 2023-10-19 3437: ---@param e Effect
239fb915e6 2023-10-19 3438: function Effect.GetDescription(e) end
239fb915e6 2023-10-19 3439: 
239fb915e6 2023-10-19 3440: ---返回code属性
239fb915e6 2023-10-19 3441: ---@return integer
239fb915e6 2023-10-19 3442: ---@param e Effect
239fb915e6 2023-10-19 3443: function Effect.GetCode(e) end
239fb915e6 2023-10-19 3444: 
239fb915e6 2023-10-19 3445: ---返回Type属性
239fb915e6 2023-10-19 3446: ---@return integer
239fb915e6 2023-10-19 3447: ---@param e Effect
239fb915e6 2023-10-19 3448: function Effect.GetType(e) end
239fb915e6 2023-10-19 3449: 
239fb915e6 2023-10-19 3450: ---返回Property属性
239fb915e6 2023-10-19 3451: ---@return integer
239fb915e6 2023-10-19 3452: ---@return integer
239fb915e6 2023-10-19 3453: ---@param e Effect
239fb915e6 2023-10-19 3454: function Effect.GetProperty(e) end
239fb915e6 2023-10-19 3455: 
239fb915e6 2023-10-19 3456: ---返回Label属性
239fb915e6 2023-10-19 3457: ---@return ... integer
239fb915e6 2023-10-19 3458: ---@param e Effect
239fb915e6 2023-10-19 3459: function Effect.GetLabel(e) end
239fb915e6 2023-10-19 3460: 
239fb915e6 2023-10-19 3461: ---返回LabelObject属性
239fb915e6 2023-10-19 3462: ---@return Card|Group|Effect
239fb915e6 2023-10-19 3463: ---@param e Effect
239fb915e6 2023-10-19 3464: function Effect.GetLabelObject(e) end
239fb915e6 2023-10-19 3465: 
239fb915e6 2023-10-19 3466: ---返回Category属性
239fb915e6 2023-10-19 3467: ---@return integer
239fb915e6 2023-10-19 3468: ---@param e Effect
239fb915e6 2023-10-19 3469: function Effect.GetCategory(e) end
239fb915e6 2023-10-19 3470: 
239fb915e6 2023-10-19 3471: ---返回Owner属性
239fb915e6 2023-10-19 3472: ---@return Card
239fb915e6 2023-10-19 3473: ---@param e Effect
239fb915e6 2023-10-19 3474: function Effect.GetOwner(e) end
239fb915e6 2023-10-19 3475: 
239fb915e6 2023-10-19 3476: ---返回效果在哪一张卡上生效(通常是用Card.RegisterEffect注册该效果的卡)
239fb915e6 2023-10-19 3477: ---@return Card
239fb915e6 2023-10-19 3478: ---@param e Effect
239fb915e6 2023-10-19 3479: function Effect.GetHandler(e) end
239fb915e6 2023-10-19 3480: 
239fb915e6 2023-10-19 3481: ---返回condition属性
239fb915e6 2023-10-19 3482: ---@return function
239fb915e6 2023-10-19 3483: ---@param e Effect
239fb915e6 2023-10-19 3484: function Effect.GetCondition(e) end
239fb915e6 2023-10-19 3485: 
239fb915e6 2023-10-19 3486: ---返回target属性
239fb915e6 2023-10-19 3487: ---@return function
239fb915e6 2023-10-19 3488: ---@param e Effect
239fb915e6 2023-10-19 3489: function Effect.GetTarget(e) end
239fb915e6 2023-10-19 3490: 
239fb915e6 2023-10-19 3491: ---返回cost属性
239fb915e6 2023-10-19 3492: ---@return function
239fb915e6 2023-10-19 3493: ---@param e Effect
239fb915e6 2023-10-19 3494: function Effect.GetCost(e) end
239fb915e6 2023-10-19 3495: 
239fb915e6 2023-10-19 3496: ---返回value属性
239fb915e6 2023-10-19 3497: ---@return function|integer
239fb915e6 2023-10-19 3498: ---@param e Effect
239fb915e6 2023-10-19 3499: function Effect.GetValue(e) end
239fb915e6 2023-10-19 3500: 
239fb915e6 2023-10-19 3501: ---返回operation属性
239fb915e6 2023-10-19 3502: ---@return function
239fb915e6 2023-10-19 3503: ---@param e Effect
239fb915e6 2023-10-19 3504: function Effect.GetOperation(e) end
239fb915e6 2023-10-19 3505: 
239fb915e6 2023-10-19 3506: ---返回e的效果类型(怪兽·魔法·陷阱)
239fb915e6 2023-10-19 3507: ---与发动该效果的卡的类型不一定相同,比如灵摆效果视为魔法卡的效果
239fb915e6 2023-10-19 3508: ---@return integer
239fb915e6 2023-10-19 3509: ---@param e Effect
239fb915e6 2023-10-19 3510: function Effect.GetActiveType(e) end
239fb915e6 2023-10-19 3511: 
239fb915e6 2023-10-19 3512: ---检查e的效果类型(怪兽·魔法·陷阱)是否有type
239fb915e6 2023-10-19 3513: ---@return boolean
239fb915e6 2023-10-19 3514: ---@param e Effect
239fb915e6 2023-10-19 3515: ---@param type integer
239fb915e6 2023-10-19 3516: function Effect.IsActiveType(e,type) end
239fb915e6 2023-10-19 3517: 
239fb915e6 2023-10-19 3518: ---返回OwnerPlayer属性,一般是Owner的控制者
239fb915e6 2023-10-19 3519: ---@return integer
239fb915e6 2023-10-19 3520: ---@param e Effect
239fb915e6 2023-10-19 3521: function Effect.GetOwnerPlayer(e) end
239fb915e6 2023-10-19 3522: 
239fb915e6 2023-10-19 3523: ---返回当前者,一般是Handle的控制者
239fb915e6 2023-10-19 3524: ---@return integer
239fb915e6 2023-10-19 3525: ---@param e Effect
239fb915e6 2023-10-19 3526: function Effect.GetHandlerPlayer(e) end
239fb915e6 2023-10-19 3527: 
239fb915e6 2023-10-19 3528: ---检查效果是否含有标志prop1[和prop2]
239fb915e6 2023-10-19 3529: ---@return boolean
239fb915e6 2023-10-19 3530: ---@param e Effect
239fb915e6 2023-10-19 3531: ---@param prop1 integer
239fb915e6 2023-10-19 3532: ---@param prop2? integer
239fb915e6 2023-10-19 3533: function Effect.IsHasProperty(e,prop1,prop2) end
239fb915e6 2023-10-19 3534: 
239fb915e6 2023-10-19 3535: ---检查效果是否含有效果分类cate
239fb915e6 2023-10-19 3536: ---@return boolean
239fb915e6 2023-10-19 3537: ---@param e Effect
239fb915e6 2023-10-19 3538: ---@param cate integer
239fb915e6 2023-10-19 3539: function Effect.IsHasCategory(e,cate) end
239fb915e6 2023-10-19 3540: 
239fb915e6 2023-10-19 3541: ---检查效果是否属于类型type
239fb915e6 2023-10-19 3542: ---@return boolean
239fb915e6 2023-10-19 3543: ---@param e Effect
239fb915e6 2023-10-19 3544: ---@param type integer
239fb915e6 2023-10-19 3545: function Effect.IsHasType(e,type) end
239fb915e6 2023-10-19 3546: 
239fb915e6 2023-10-19 3547: ---检查效果e能否由player发动
239fb915e6 2023-10-19 3548: ---neglect_loc=true 为不检测发动位置(手卡), neglect_target=true 为不检测对象要求
239fb915e6 2023-10-19 3549: ---@return boolean
239fb915e6 2023-10-19 3550: ---@param e Effect
239fb915e6 2023-10-19 3551: ---@param player integer
239fb915e6 2023-10-19 3552: ---@param neglect_loc? boolean default: false
239fb915e6 2023-10-19 3553: ---@param neglect_target? boolean default: false
239fb915e6 2023-10-19 3554: function Effect.IsActivatable(e,player,neglect_loc,neglect_target) end
239fb915e6 2023-10-19 3555: 
239fb915e6 2023-10-19 3556: ---检查效果e是否是已发动的效果
239fb915e6 2023-10-19 3557: ---@return boolean
239fb915e6 2023-10-19 3558: ---@param e Effect
239fb915e6 2023-10-19 3559: function Effect.IsActivated(e) end
239fb915e6 2023-10-19 3560: 
239fb915e6 2023-10-19 3561: ---检查效果e是否检查过cost,即是否是被复制的
239fb915e6 2023-10-19 3562: ---@return boolean
239fb915e6 2023-10-19 3563: ---@param e Effect
239fb915e6 2023-10-19 3564: function Effect.IsCostChecked(e) end
239fb915e6 2023-10-19 3565: 
239fb915e6 2023-10-19 3566: ---设置效果e的cost检查标记为b
239fb915e6 2023-10-19 3567: ---@param e Effect
239fb915e6 2023-10-19 3568: ---@param b boolean
239fb915e6 2023-10-19 3569: function Effect.SetCostCheck(e,b) end
239fb915e6 2023-10-19 3570: 
239fb915e6 2023-10-19 3571: ---返回效果e的发动区域
239fb915e6 2023-10-19 3572: ---@return integer
239fb915e6 2023-10-19 3573: ---@param e Effect
239fb915e6 2023-10-19 3574: function Effect.GetActivateLocation(e) end
239fb915e6 2023-10-19 3575: 
239fb915e6 2023-10-19 3576: ---返回效果e的发动区域序号
239fb915e6 2023-10-19 3577: ---@return integer
239fb915e6 2023-10-19 3578: ---@param e Effect
239fb915e6 2023-10-19 3579: function Effect.GetActivateSequence(e) end
239fb915e6 2023-10-19 3580: 
239fb915e6 2023-10-19 3581: ---检测玩家 p 是否还有可以发动的效果 e 的次数
239fb915e6 2023-10-19 3582: ---@return boolean
239fb915e6 2023-10-19 3583: ---@param e Effect
239fb915e6 2023-10-19 3584: ---@param p integer
239fb915e6 2023-10-19 3585: function Effect.CheckCountLimit(e,p) end
239fb915e6 2023-10-19 3586: 
239fb915e6 2023-10-19 3587: ---手动减少玩家 p 对效果 e 的 count 个可用次数[ oath_only 为 该效果是否是 EFFECT_FLAG_OATH]
239fb915e6 2023-10-19 3588: ---@param e Effect
239fb915e6 2023-10-19 3589: ---@param p integer
239fb915e6 2023-10-19 3590: ---@param count? integer default: 1
239fb915e6 2023-10-19 3591: ---@param oath_only? boolean default: false
239fb915e6 2023-10-19 3592: function Effect.UseCountLimit(e,p,count,oath_only) end
239fb915e6 2023-10-19 3593: 
239fb915e6 2023-10-19 3594: ---新建一个空的卡片组
239fb915e6 2023-10-19 3595: ---@return Group
239fb915e6 2023-10-19 3596: function Group.CreateGroup() end
239fb915e6 2023-10-19 3597: 
239fb915e6 2023-10-19 3598: ---让卡片组持续,把卡片组设置为效果的LabelObject需要设置
239fb915e6 2023-10-19 3599: ---@param g Group
239fb915e6 2023-10-19 3600: function Group.KeepAlive(g) end
239fb915e6 2023-10-19 3601: 
239fb915e6 2023-10-19 3602: ---删除卡片组g
239fb915e6 2023-10-19 3603: ---@param g Group
239fb915e6 2023-10-19 3604: function Group.DeleteGroup(g) end
239fb915e6 2023-10-19 3605: 
239fb915e6 2023-10-19 3606: ---新建卡片组g的副本
239fb915e6 2023-10-19 3607: ---@return Group
239fb915e6 2023-10-19 3608: ---@param g Group
239fb915e6 2023-10-19 3609: function Group.Clone(g) end
239fb915e6 2023-10-19 3610: 
239fb915e6 2023-10-19 3611: ---不定参数,把传入的所有卡组合成一个卡片组并返回,所有参数只能是 Card 类型。
239fb915e6 2023-10-19 3612: ---没有参数时,相当于Group.CreateGroup()
239fb915e6 2023-10-19 3613: ---@return Group
239fb915e6 2023-10-19 3614: ---@param ... Card
239fb915e6 2023-10-19 3615: function Group.FromCards(...) end
239fb915e6 2023-10-19 3616: 
239fb915e6 2023-10-19 3617: ---清空卡片组
239fb915e6 2023-10-19 3618: ---@param g Group
239fb915e6 2023-10-19 3619: function Group.Clear(g) end
239fb915e6 2023-10-19 3620: 
239fb915e6 2023-10-19 3621: ---往g中增加c
239fb915e6 2023-10-19 3622: ---@param g Group
239fb915e6 2023-10-19 3623: ---@param c Card
239fb915e6 2023-10-19 3624: function Group.AddCard(g,c) end
239fb915e6 2023-10-19 3625: 
239fb915e6 2023-10-19 3626: ---把c从g中移除
239fb915e6 2023-10-19 3627: ---@param g Group
239fb915e6 2023-10-19 3628: ---@param c Card
239fb915e6 2023-10-19 3629: function Group.RemoveCard(g,c) end
239fb915e6 2023-10-19 3630: 
239fb915e6 2023-10-19 3631: ---使指针指向下一张卡并返回这张卡,如果不存在则返回nil
239fb915e6 2023-10-19 3632: ---@return Card
239fb915e6 2023-10-19 3633: ---@param g Group
239fb915e6 2023-10-19 3634: function Group.GetNext(g) end
239fb915e6 2023-10-19 3635: 
239fb915e6 2023-10-19 3636: ---返回g中第一张卡,并重置当前指针到g中第一张卡
239fb915e6 2023-10-19 3637: ---如果g中不存在卡则返回nil
239fb915e6 2023-10-19 3638: ---@return Card
239fb915e6 2023-10-19 3639: ---@param g Group
239fb915e6 2023-10-19 3640: function Group.GetFirst(g) end
239fb915e6 2023-10-19 3641: 
239fb915e6 2023-10-19 3642: ---返回g中卡的数量
239fb915e6 2023-10-19 3643: ---@return integer
239fb915e6 2023-10-19 3644: ---@param g Group
239fb915e6 2023-10-19 3645: function Group.GetCount(g) end
239fb915e6 2023-10-19 3646: 
239fb915e6 2023-10-19 3647: ---以g中的每一张卡作为参数调用一次f ,第三个参数开始为额外参数
239fb915e6 2023-10-19 3648: ---@param g Group
239fb915e6 2023-10-19 3649: ---@param f function
239fb915e6 2023-10-19 3650: ---@param ... any
239fb915e6 2023-10-19 3651: function Group.ForEach(g,f,...) end
239fb915e6 2023-10-19 3652: 
239fb915e6 2023-10-19 3653: ---过滤函数,从g中筛选满足筛选条件f并且不等于ex的卡
239fb915e6 2023-10-19 3654: ---从第4个参数开始为额外参数
239fb915e6 2023-10-19 3655: ---@return Group
239fb915e6 2023-10-19 3656: ---@param g Group
239fb915e6 2023-10-19 3657: ---@param f function
239fb915e6 2023-10-19 3658: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 3659: ---@param ... any
239fb915e6 2023-10-19 3660: function Group.Filter(g,f,ex,...) end
239fb915e6 2023-10-19 3661: 
239fb915e6 2023-10-19 3662: ---过滤函数,和Group.Filter基本相同,不同之处在于此函数只返回满足条件的卡的数量
239fb915e6 2023-10-19 3663: ---@return integer
239fb915e6 2023-10-19 3664: ---@param g Group
239fb915e6 2023-10-19 3665: ---@param f function
239fb915e6 2023-10-19 3666: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 3667: ---@param ... any
239fb915e6 2023-10-19 3668: function Group.FilterCount(g,f,ex,...) end
239fb915e6 2023-10-19 3669: 
239fb915e6 2023-10-19 3670: ---过滤函数,让玩家player从g中选择 min-max 张满足筛选条件f并且不等于ex的卡
239fb915e6 2023-10-19 3671: ---从第7个参数开始为额外参数
239fb915e6 2023-10-19 3672: ---@return Group
239fb915e6 2023-10-19 3673: ---@param g Group
239fb915e6 2023-10-19 3674: ---@param player integer
239fb915e6 2023-10-19 3675: ---@param f function
239fb915e6 2023-10-19 3676: ---@param min integer
239fb915e6 2023-10-19 3677: ---@param max integer
239fb915e6 2023-10-19 3678: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 3679: ---@param ... any
239fb915e6 2023-10-19 3680: function Group.FilterSelect(g,player,f,min,max,ex,...) end
239fb915e6 2023-10-19 3681: 
239fb915e6 2023-10-19 3682: ---让玩家player从g中选择min-max张不等于ex的卡
239fb915e6 2023-10-19 3683: ---@return Group
239fb915e6 2023-10-19 3684: ---@param g Group
239fb915e6 2023-10-19 3685: ---@param player integer
239fb915e6 2023-10-19 3686: ---@param min integer
239fb915e6 2023-10-19 3687: ---@param max integer
239fb915e6 2023-10-19 3688: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 3689: function Group.Select(g,player,min,max,ex) end
239fb915e6 2023-10-19 3690: 
239fb915e6 2023-10-19 3691: ---让玩家 player 从 cg 中选择 1 张卡放入 sg ,并返回选的卡。  
239fb915e6 2023-10-19 3692: ---btok 表示是否可以点击完成选择的按钮, cancelable 表示是否可以取消整个选择返回 nil, 
239fb915e6 2023-10-19 3693: ---minc 和 maxc 是客户端的文字缓冲提示,表示需要选择 minc-maxc 张卡,但是这个只是影响视觉效果,并不代表必须要选择那个数量
239fb915e6 2023-10-19 3694: ---@return Card|nil
239fb915e6 2023-10-19 3695: ---@param cg Group
239fb915e6 2023-10-19 3696: ---@param sg Group|nil 已选的卡,可以从中取消选择
239fb915e6 2023-10-19 3697: ---@param player integer
239fb915e6 2023-10-19 3698: ---@param btok boolean default: false
239fb915e6 2023-10-19 3699: ---@param cancelable boolean default: false
239fb915e6 2023-10-19 3700: ---@param minc integer
239fb915e6 2023-10-19 3701: ---@param maxc integer
239fb915e6 2023-10-19 3702: function Group.SelectUnselect(cg,sg,player,btok,cancelable,minc,maxc) end
239fb915e6 2023-10-19 3703: 
239fb915e6 2023-10-19 3704: ---让玩家player从g中随机选择count张卡
239fb915e6 2023-10-19 3705: ---因为是随机选择,所以参数player基本无用,由系统随机选取
239fb915e6 2023-10-19 3706: ---@return Group
239fb915e6 2023-10-19 3707: ---@param g Group
239fb915e6 2023-10-19 3708: ---@param player integer
239fb915e6 2023-10-19 3709: ---@param count integer
239fb915e6 2023-10-19 3710: function Group.RandomSelect(g,player,count) end
239fb915e6 2023-10-19 3711: 
239fb915e6 2023-10-19 3712: ---过滤函数,检查g中是否存在至少count张满足筛选条件f并且不等于ex的卡
239fb915e6 2023-10-19 3713: ---从第5个参数开始为额外参数
239fb915e6 2023-10-19 3714: ---@return boolean
239fb915e6 2023-10-19 3715: ---@param g Group
239fb915e6 2023-10-19 3716: ---@param f function
239fb915e6 2023-10-19 3717: ---@param count integer
239fb915e6 2023-10-19 3718: ---@param ex Card|Group|nil
239fb915e6 2023-10-19 3719: ---@param ... any
239fb915e6 2023-10-19 3720: function Group.IsExists(g,f,count,ex,...) end
239fb915e6 2023-10-19 3721: 
239fb915e6 2023-10-19 3722: ---子集求和判定函数,f为返回一个interger值的函数
239fb915e6 2023-10-19 3723: ---检查g中是否存在一个数量为min-max的子集满足以f对子集的每一个元素求值的和等于sum,从第6个参数开始为额外参数
239fb915e6 2023-10-19 3724: ---	比如:g:CheckWithSumEqual(Card.GetSynchroLevel,7,2,99)
239fb915e6 2023-10-19 3725: ---	检查g中是否存在一个子集满足子集的同调用等级之和等于7
239fb915e6 2023-10-19 3726: ---@return boolean
239fb915e6 2023-10-19 3727: ---@param g Group
239fb915e6 2023-10-19 3728: ---@param f function
239fb915e6 2023-10-19 3729: ---@param sum integer
239fb915e6 2023-10-19 3730: ---@param min integer default: 0
239fb915e6 2023-10-19 3731: ---@param max integer
239fb915e6 2023-10-19 3732: ---@param ... any
239fb915e6 2023-10-19 3733: function Group.CheckWithSumEqual(g,f,sum,min,max,...) end
239fb915e6 2023-10-19 3734: 
239fb915e6 2023-10-19 3735: ---让玩家player从g中选取一个数量为min-max的子集使子集的特定函数的和等于sum,从第7个参数开始为额外参数
239fb915e6 2023-10-19 3736: ---@return Group
239fb915e6 2023-10-19 3737: ---@param g Group
239fb915e6 2023-10-19 3738: ---@param player integer
239fb915e6 2023-10-19 3739: ---@param f function
239fb915e6 2023-10-19 3740: ---@param sum integer
239fb915e6 2023-10-19 3741: ---@param min integer
239fb915e6 2023-10-19 3742: ---@param max integer
239fb915e6 2023-10-19 3743: ---@param ... any
239fb915e6 2023-10-19 3744: function Group.SelectWithSumEqual(g,player,f,sum,min,max,...) end
239fb915e6 2023-10-19 3745: 
239fb915e6 2023-10-19 3746: ---子集求和判定函数之二,f为返回一个interger值的函数
239fb915e6 2023-10-19 3747: ---检查g中是否存在一个子集满足以f对子集的每一个元素求值的和刚好大于或者等于sum,从第4个参数开始为额外参数
239fb915e6 2023-10-19 3748: ---比如:g:CheckWithSumGreater(Card.GetRitualLevel,8)
239fb915e6 2023-10-19 3749: ---	检查g中是否存在一个子集满足子集的仪式用等级之和大于等于8
239fb915e6 2023-10-19 3750: ---	注:判定必须是“刚好”大于或者等于
239fb915e6 2023-10-19 3751: ---	以等级为例,要使等级合计大于等于8,可以选择LV1+LV7而不可以选择LV1+LV4+LV4
239fb915e6 2023-10-19 3752: ---@return boolean
239fb915e6 2023-10-19 3753: ---@param g Group
239fb915e6 2023-10-19 3754: ---@param f function
239fb915e6 2023-10-19 3755: ---@param sum integer
239fb915e6 2023-10-19 3756: ---@param ... any
239fb915e6 2023-10-19 3757: function Group.CheckWithSumGreater(g,f,sum,...) end
239fb915e6 2023-10-19 3758: 
239fb915e6 2023-10-19 3759: ---让玩家player从g中选取一个子集使子集的特定函数f的和大于等于sum,从第5个参数开始为额外参数
239fb915e6 2023-10-19 3760: ---@return Group
239fb915e6 2023-10-19 3761: ---@param g Group
239fb915e6 2023-10-19 3762: ---@param player integer
239fb915e6 2023-10-19 3763: ---@param f function
239fb915e6 2023-10-19 3764: ---@param sum integer
239fb915e6 2023-10-19 3765: ---@param ... any
239fb915e6 2023-10-19 3766: function Group.SelectWithSumGreater(g,player,f,sum,...) end
239fb915e6 2023-10-19 3767: 
239fb915e6 2023-10-19 3768: ---f为返回一个interger值的函数,从g中筛选出具有最小的f的值的卡
239fb915e6 2023-10-19 3769: ---第2个返回值为这个最小值,从第3个参数开始为额外参数
239fb915e6 2023-10-19 3770: ---要使用第2个返回值注意检查g非空
239fb915e6 2023-10-19 3771: ---@return Group
239fb915e6 2023-10-19 3772: ---@return integer
239fb915e6 2023-10-19 3773: ---@param g Group
239fb915e6 2023-10-19 3774: ---@param f function
239fb915e6 2023-10-19 3775: ---@param ... any
239fb915e6 2023-10-19 3776: function Group.GetMinGroup(g,f,...) end
239fb915e6 2023-10-19 3777: 
239fb915e6 2023-10-19 3778: ---f为返回一个interger值的函数,从g中筛选出具有最大的f的值的卡
239fb915e6 2023-10-19 3779: ---第2个返回值为这个最大值,从第3个参数开始为额外参数
239fb915e6 2023-10-19 3780: ---要使用第2个返回值注意检查g非空
239fb915e6 2023-10-19 3781: ---@return Group
239fb915e6 2023-10-19 3782: ---@return integer
239fb915e6 2023-10-19 3783: ---@param g Group
239fb915e6 2023-10-19 3784: ---@param f function
239fb915e6 2023-10-19 3785: ---@param ... any
239fb915e6 2023-10-19 3786: function Group.GetMaxGroup(g,f,...) end
239fb915e6 2023-10-19 3787: 
239fb915e6 2023-10-19 3788: ---计算g中所有卡的取值的总和,f为为每张卡的取值函数,从第3个参数开始为额外参数
239fb915e6 2023-10-19 3789: ---@return integer
239fb915e6 2023-10-19 3790: ---@param g Group
239fb915e6 2023-10-19 3791: ---@param f function
239fb915e6 2023-10-19 3792: ---@param ... any
239fb915e6 2023-10-19 3793: function Group.GetSum(g,f,...) end
239fb915e6 2023-10-19 3794: 
239fb915e6 2023-10-19 3795: ---计算g中所有卡的种类数量,f为分类的依据,返回相同的值视为同一种类,从第3个参数开始为额外参数
239fb915e6 2023-10-19 3796: ---比如 g:GetClassCount(Card.GetCode()) 就是计算g中卡名不同的卡的数量
239fb915e6 2023-10-19 3797: ---@return integer
239fb915e6 2023-10-19 3798: ---@param g Group
239fb915e6 2023-10-19 3799: ---@param f function
239fb915e6 2023-10-19 3800: ---@param ... any
239fb915e6 2023-10-19 3801: function Group.GetClassCount(g,f,...) end
239fb915e6 2023-10-19 3802: 
239fb915e6 2023-10-19 3803: ---从g中移除满足筛选条件f并且不等于ex的所有卡,第4个参数开始是额外参数
239fb915e6 2023-10-19 3804: ---@param g Group
239fb915e6 2023-10-19 3805: ---@param f function
239fb915e6 2023-10-19 3806: ---@param ex Card|nil
239fb915e6 2023-10-19 3807: ---@param ... any
239fb915e6 2023-10-19 3808: function Group.Remove(g,f,ex,...) end
239fb915e6 2023-10-19 3809: 
239fb915e6 2023-10-19 3810: ---把g2中的所有卡合并到g1,若g1中原本就有属于g2的卡,那些卡将不会重复
239fb915e6 2023-10-19 3811: ---注:g2本身不会发生变化
239fb915e6 2023-10-19 3812: ---@param g1 Group
239fb915e6 2023-10-19 3813: ---@param g2 Group
239fb915e6 2023-10-19 3814: function Group.Merge(g1,g2) end
239fb915e6 2023-10-19 3815: 
239fb915e6 2023-10-19 3816: ---从g1中移除属于g2中的卡
239fb915e6 2023-10-19 3817: ---注:g2本身不会发生变化
239fb915e6 2023-10-19 3818: ---@param g1 Group
239fb915e6 2023-10-19 3819: ---@param g2 Group
239fb915e6 2023-10-19 3820: function Group.Sub(g1,g2) end
239fb915e6 2023-10-19 3821: 
239fb915e6 2023-10-19 3822: ---判断g1和g2是否相同
239fb915e6 2023-10-19 3823: ---@return boolean
239fb915e6 2023-10-19 3824: ---@param g1 Group
239fb915e6 2023-10-19 3825: ---@param g2 Group
239fb915e6 2023-10-19 3826: function Group.Equal(g1,g2) end
239fb915e6 2023-10-19 3827: 
239fb915e6 2023-10-19 3828: ---检查g中是否存在卡片c
239fb915e6 2023-10-19 3829: ---@return boolean
239fb915e6 2023-10-19 3830: ---@param g Group
239fb915e6 2023-10-19 3831: ---@param c Card
239fb915e6 2023-10-19 3832: function Group.IsContains(g,c) end
239fb915e6 2023-10-19 3833: 
239fb915e6 2023-10-19 3834: ---过滤函数,返回g中满足筛选条件f的第一张卡,若没有则返回nil,从第3个参数开始为额外参数
239fb915e6 2023-10-19 3835: ---@return Card
239fb915e6 2023-10-19 3836: ---@param g Group
239fb915e6 2023-10-19 3837: ---@param f function
239fb915e6 2023-10-19 3838: ---@param ... any
239fb915e6 2023-10-19 3839: function Group.SearchCard(g,f,...) end
239fb915e6 2023-10-19 3840: 
239fb915e6 2023-10-19 3841: ---和 Group.GetClassCount 类似,但是算法不同(使用位运算)
239fb915e6 2023-10-19 3842: ---@return integer
239fb915e6 2023-10-19 3843: ---@param g Group
239fb915e6 2023-10-19 3844: ---@param f function
239fb915e6 2023-10-19 3845: ---@param ... any
239fb915e6 2023-10-19 3846: function Group.GetBinClassCount(g,f,...) end
239fb915e6 2023-10-19 3847: 
239fb915e6 2023-10-19 3848: ---显示消息。
239fb915e6 2023-10-19 3849: ---注意,只会在本地生效,在服务器端不会生效。
239fb915e6 2023-10-19 3850: ---@param msg any
239fb915e6 2023-10-19 3851: function Debug.Message(msg) end
239fb915e6 2023-10-19 3852: 
239fb915e6 2023-10-19 3853: ---添加卡片,将卡号为code的卡片的持有者设置为owner,以表示形式pos放置在player的场上位于location上序号为seq的格子处
239fb915e6 2023-10-19 3854: ---proc=true则完成正规召唤程序(即解除苏生限制)
239fb915e6 2023-10-19 3855: ---@return Card
239fb915e6 2023-10-19 3856: ---@param code integer
239fb915e6 2023-10-19 3857: ---@param owner integer
239fb915e6 2023-10-19 3858: ---@param player integer
239fb915e6 2023-10-19 3859: ---@param location integer
239fb915e6 2023-10-19 3860: ---@param seq integer
239fb915e6 2023-10-19 3861: ---@param pos integer
239fb915e6 2023-10-19 3862: ---@param proc? boolean default: false
239fb915e6 2023-10-19 3863: function Debug.AddCard(code,owner,player,location,seq,pos,proc) end
239fb915e6 2023-10-19 3864: 
239fb915e6 2023-10-19 3865: ---设置玩家信息,基本分为lp,初始手卡为startcount张,每回合抽drawcount张
239fb915e6 2023-10-19 3866: ---在残局当中, playerid :自己=0,对方=1
239fb915e6 2023-10-19 3867: ---@param playerid integer
239fb915e6 2023-10-19 3868: ---@param lp integer
239fb915e6 2023-10-19 3869: ---@param startcount integer
239fb915e6 2023-10-19 3870: ---@param drawcount integer
239fb915e6 2023-10-19 3871: function Debug.SetPlayerInfo(playerid,lp,startcount,drawcount) end
239fb915e6 2023-10-19 3872: 
239fb915e6 2023-10-19 3873: ---设置卡片c的召唤信息:以 sum_type 方法(通常召唤、特殊召唤等)[从 sum_location]出场
239fb915e6 2023-10-19 3874: ---@param c Card
239fb915e6 2023-10-19 3875: ---@param sum_type integer
239fb915e6 2023-10-19 3876: ---@param sum_location? integer default: 0
239fb915e6 2023-10-19 3877: function Debug.PreSummon(c,sum_type,sum_location) end
239fb915e6 2023-10-19 3878: 
239fb915e6 2023-10-19 3879: ---为target添加装备equip_card ,返回值表示是否成功
239fb915e6 2023-10-19 3880: ---@return boolean
239fb915e6 2023-10-19 3881: ---@param equip_card Card
239fb915e6 2023-10-19 3882: ---@param target Card
239fb915e6 2023-10-19 3883: function Debug.PreEquip(equip_card,target) end
239fb915e6 2023-10-19 3884: 
239fb915e6 2023-10-19 3885: ---把target选为c的永续对象
239fb915e6 2023-10-19 3886: ---@param c Card
239fb915e6 2023-10-19 3887: ---@param target Card
239fb915e6 2023-10-19 3888: function Debug.PreSetTarget(c,target) end
239fb915e6 2023-10-19 3889: 
239fb915e6 2023-10-19 3890: ---为c添加count个counter_type的指示物
239fb915e6 2023-10-19 3891: ---@param c Card
239fb915e6 2023-10-19 3892: ---@param counter_type integer
239fb915e6 2023-10-19 3893: ---@param count? integer default: 0
239fb915e6 2023-10-19 3894: function Debug.PreAddCounter(c,counter_type,count) end
239fb915e6 2023-10-19 3895: 
239fb915e6 2023-10-19 3896: ---以选项flag开始布局
239fb915e6 2023-10-19 3897: ---	flag 残局: DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI
239fb915e6 2023-10-19 3898: ---		 大师1规则: DUEL_OBSOLETE_RULING
239fb915e6 2023-10-19 3899: ---	rule=4 是新大师规则
239fb915e6 2023-10-19 3900: ---@param flag integer
239fb915e6 2023-10-19 3901: ---@param rule? integer default: 3
239fb915e6 2023-10-19 3902: function Debug.ReloadFieldBegin(flag,rule) end
239fb915e6 2023-10-19 3903: 
239fb915e6 2023-10-19 3904: ---布局结束
239fb915e6 2023-10-19 3905: function Debug.ReloadFieldEnd() end
239fb915e6 2023-10-19 3906: 
239fb915e6 2023-10-19 3907: ---设置AI的名字,最大长度 100 个字符(1个汉字2个字符)
239fb915e6 2023-10-19 3908: ---@param name string
239fb915e6 2023-10-19 3909: function Debug.SetAIName(name) end
239fb915e6 2023-10-19 3910: 
239fb915e6 2023-10-19 3911: ---显示消息提示框,最大长度 1024 个字符(1个汉字2个字符)
239fb915e6 2023-10-19 3912: ---注意,只会在本地生效,在服务器端不会生效。
239fb915e6 2023-10-19 3913: ---@param msg string
239fb915e6 2023-10-19 3914: function Debug.ShowHint(msg) end