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