游戏王残局简化版

Annotation For single_doc/副_容冗/def.lua
Login

Annotation For single_doc/副_容冗/def.lua

Origin for each line in single_doc/副_容冗/def.lua from check-in 60c256f91b:

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