游戏王残局简化版

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 4f08f247d9:

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