游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

Origin for each line in script/c0.lua from check-in 832da4f615:

eeeff3c24b 2023-07-15    1: 
e59d27b43b 2023-07-17    2: local str = {}
e59d27b43b 2023-07-17    3: 
e59d27b43b 2023-07-17    4: local cache_1
e59d27b43b 2023-07-17    5: local cache_2
e59d27b43b 2023-07-17    6: local cache_3
e59d27b43b 2023-07-17    7: local cache_4
e59d27b43b 2023-07-17    8: local cache_5
27cb01cd8e 2023-07-17    9: local cache_6
27cb01cd8e 2023-07-17   10: local cache_7
27cb01cd8e 2023-07-17   11: local cache_8
27cb01cd8e 2023-07-17   12: local cache_9
41aff3cc3d 2023-07-17   13: 
41aff3cc3d 2023-07-17   14: _G.fun = {}
27cb01cd8e 2023-07-17   15: 
1270346ecf 2023-07-19   16: ---------------------------------
1270346ecf 2023-07-19   17: 
626009b1d8 2023-07-19   18: str["规则表"] = {}
626009b1d8 2023-07-19   19: str["规则表"][3] = "大师3 "
626009b1d8 2023-07-19   20: str["规则表"][4] = "新大师 "
626009b1d8 2023-07-19   21: str["规则表"][5] = "大师2020 "
cea99f0284 2023-07-19   22: 
cea99f0284 2023-07-19   23: str["效果卡的种类表"] = {}
cea99f0284 2023-07-19   24: str["效果卡的种类表"][1] = TYPE_SPELL
cea99f0284 2023-07-19   25: str["效果卡的种类表"][2] = TYPE_TRAP
cea99f0284 2023-07-19   26: str["效果卡的种类表"][3] = TYPE_EFFECT
15a06aae93 2023-07-19   27: 
15a06aae93 2023-07-19   28: str["无效果灵摆怪兽表"] = {}
15a06aae93 2023-07-19   29: 
15a06aae93 2023-07-19   30: str["无效果灵摆怪兽表"][1] = 28363749
15a06aae93 2023-07-19   31: str["无效果灵摆怪兽表"][2] = 19474136
15a06aae93 2023-07-19   32: str["无效果灵摆怪兽表"][3] = 17390179
15a06aae93 2023-07-19   33: str["无效果灵摆怪兽表"][4] = 83980492
262ab836d0 2023-07-19   34: 
262ab836d0 2023-07-19   35: cache_1 = 0
262ab836d0 2023-07-19   36: 
262ab836d0 2023-07-19   37: cache_1 = cache_1 + LOCATION_HAND
262ab836d0 2023-07-19   38: cache_1 = cache_1 + LOCATION_MZONE
262ab836d0 2023-07-19   39: cache_1 = cache_1 + LOCATION_SZONE
262ab836d0 2023-07-19   40: cache_1 = cache_1 + LOCATION_GRAVE
262ab836d0 2023-07-19   41: cache_1 = cache_1 + LOCATION_REMOVED
262ab836d0 2023-07-19   42: 
262ab836d0 2023-07-19   43: str["除卡组与额外卡组以外的区域"] = cache_1
262ab836d0 2023-07-19   44: 
262ab836d0 2023-07-19   45: cache_1 = cache_1 + LOCATION_DECK
262ab836d0 2023-07-19   46: cache_1 = cache_1 + LOCATION_EXTRA
262ab836d0 2023-07-19   47: 
262ab836d0 2023-07-19   48: str["所有区域"] = cache_1
ba86300fd5 2023-07-19   49: 
1270346ecf 2023-07-19   50: ---------------------------------
1270346ecf 2023-07-19   51: 
ad797768a6 2023-07-14   52: fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
45478ef823 2023-07-13   53: 
45478ef823 2023-07-13   54: Debug.ReloadFieldBegin = function(str_1, str_2) --{
993a6dbc45 2023-07-13   55:   
45478ef823 2023-07-13   56:   str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
45478ef823 2023-07-13   57:   
45478ef823 2023-07-13   58:   str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN
45478ef823 2023-07-13   59:   
45478ef823 2023-07-13   60:   if str_2 then --{
993a6dbc45 2023-07-13   61:     
626009b1d8 2023-07-19   62:     str["规则"] = str["规则表"][str_2]
626009b1d8 2023-07-19   63:     
626009b1d8 2023-07-19   64:     --}
993a6dbc45 2023-07-13   65:     
45478ef823 2023-07-13   66:   else --{
993a6dbc45 2023-07-13   67:     
626009b1d8 2023-07-19   68:     str["规则"] = str["规则表"][5]
ad797768a6 2023-07-14   69:     
ad797768a6 2023-07-14   70:     end --}
ad797768a6 2023-07-14   71:     
ad797768a6 2023-07-14   72:   fun["Debug.ReloadFieldBegin"](str_1, str_2)
ad797768a6 2023-07-14   73:   
9a4f580be7 2023-07-23   74:   end --}
9a4f580be7 2023-07-23   75:   
9a4f580be7 2023-07-23   76: fun["Debug.ReloadFieldEnd"] = Debug.ReloadFieldEnd
9a4f580be7 2023-07-23   77: 
9a4f580be7 2023-07-23   78: Debug.ReloadFieldEnd = function(str_1) --{
832da4f615 2023-07-23   79:   
9a4f580be7 2023-07-23   80:   fun["Debug.ReloadFieldEnd"]()
9a4f580be7 2023-07-23   81:   
9a4f580be7 2023-07-23   82:   if str_1 then --{
832da4f615 2023-07-23   83:     
9a4f580be7 2023-07-23   84:     fun["随机抽卡"](str_1)
832da4f615 2023-07-23   85:     
9a4f580be7 2023-07-23   86:     end --}
832da4f615 2023-07-23   87:     
8a01ebbad2 2023-07-23   88:   end --}
8a01ebbad2 2023-07-23   89:   
7b13e3e7c3 2023-07-16   90: fun["aux.BeginPuzzle"] = aux.BeginPuzzle
7b13e3e7c3 2023-07-16   91: 
66a03a682a 2023-07-20   92: aux.BeginPuzzle = function(str_1, str_2) --{
c1424b8fad 2023-07-16   93:   
02cee86a5d 2023-07-16   94:   fun["aux.BeginPuzzle"]()
c1424b8fad 2023-07-16   95:   
66a03a682a 2023-07-20   96:   if str_1 then --{
66a03a682a 2023-07-20   97:     
66a03a682a 2023-07-20   98:     fun["开局添加手卡"](str_1)
66a03a682a 2023-07-20   99:     
66a03a682a 2023-07-20  100:     end --}
66a03a682a 2023-07-20  101:     
66a03a682a 2023-07-20  102:   if str_2 then --{
66a03a682a 2023-07-20  103:     
66a03a682a 2023-07-20  104:     fun["禁格"](str_2)
66a03a682a 2023-07-20  105:     
66a03a682a 2023-07-20  106:     end --}
66a03a682a 2023-07-20  107:     
02cee86a5d 2023-07-16  108:   fun["开局说明"]()
c1424b8fad 2023-07-16  109:   
cd5279993d 2023-07-16  110:   fun["通关邀请"]()
c1424b8fad 2023-07-16  111:   
02cee86a5d 2023-07-16  112:   end --}
c1424b8fad 2023-07-16  113:   
993a6dbc45 2023-07-13  114: fun["通关邀请"] = function() --{
993a6dbc45 2023-07-13  115:   
6254eda63a 2023-07-23  116:   str["效果"] = Effect.GlobalEffect()
993a6dbc45 2023-07-13  117:   
6254eda63a 2023-07-23  118:   str["效果"]:SetType(EFFECT_TYPE_FIELD
45478ef823 2023-07-13  119:   + EFFECT_TYPE_CONTINUOUS)
45478ef823 2023-07-13  120:   
6254eda63a 2023-07-23  121:   str["效果"]:SetCode(EVENT_DAMAGE)
45478ef823 2023-07-13  122:   
45478ef823 2023-07-13  123:   function cache_1() --{
993a6dbc45 2023-07-13  124:     
45478ef823 2023-07-13  125:     cache_1 = Duel.GetLP(1)
45478ef823 2023-07-13  126:     
45478ef823 2023-07-13  127:     if cache_1 <= 0 then --{
993a6dbc45 2023-07-13  128:       
5593fe6ed7 2023-07-17  129:       if cache_1 == 0 then --{
5593fe6ed7 2023-07-17  130:         
ea070909e1 2023-07-18  131:         --}
ea070909e1 2023-07-18  132:         
ea070909e1 2023-07-18  133:       else  --{
ea070909e1 2023-07-18  134:         
0d8bedefaa 2023-07-23  135:         Debug.ShowHint("QB:「你居然二解了,请加群告诉我怎么二解。」")
334f2bc614 2023-07-18  136:         
334f2bc614 2023-07-18  137:         end --}
334f2bc614 2023-07-18  138:         
0d8bedefaa 2023-07-23  139:       Debug.ShowHint("残局群181175613")
993a6dbc45 2023-07-13  140:       
993a6dbc45 2023-07-13  141:       --}
993a6dbc45 2023-07-13  142:       
993a6dbc45 2023-07-13  143:     else --{
993a6dbc45 2023-07-13  144:       
24b898f4c2 2023-07-16  145:       return false
993a6dbc45 2023-07-13  146:       
993a6dbc45 2023-07-13  147:       end --}
993a6dbc45 2023-07-13  148:       
975214d28e 2023-07-16  149:     end --}
975214d28e 2023-07-16  150:     
6254eda63a 2023-07-23  151:   str["效果"]:SetCondition(cache_1)
115aa990c4 2023-07-16  152:   
6254eda63a 2023-07-23  153:   str["效果"]:SetOperation(aux.NULL)
115aa990c4 2023-07-16  154:   
6254eda63a 2023-07-23  155:   Duel.RegisterEffect(str["效果"]
45478ef823 2023-07-13  156:   , 0)
45478ef823 2023-07-13  157:   
45478ef823 2023-07-13  158:   end --}
993a6dbc45 2023-07-13  159:   
45478ef823 2023-07-13  160: fun["是否效果卡"] = function(card) --{
add769c64d 2023-07-19  161:   
14f5073ab7 2023-07-23  162:   for i = 1, #str["效果卡的种类表"] do --{
add769c64d 2023-07-19  163:     
add769c64d 2023-07-19  164:     cache_1 = Card.IsType(card, str["效果卡的种类表"][i])
add769c64d 2023-07-19  165:     
add769c64d 2023-07-19  166:     if cache_1 then --{
add769c64d 2023-07-19  167:       
add769c64d 2023-07-19  168:       return true
add769c64d 2023-07-19  169:       end --}
add769c64d 2023-07-19  170:       
45478ef823 2023-07-13  171:     end --}
993a6dbc45 2023-07-13  172:     
45478ef823 2023-07-13  173:   cache_1 = Card.IsType(card, TYPE_PENDULUM)
45478ef823 2023-07-13  174:   
45478ef823 2023-07-13  175:   if cache_1 then --{
993a6dbc45 2023-07-13  176:     
14f5073ab7 2023-07-23  177:     for i = 1, #str["无效果灵摆怪兽表"] do --{
15a06aae93 2023-07-19  178:       
e815de3684 2023-07-23  179:       if Card.IsCode(card, str["无效果灵摆怪兽表"][i]) then --{
15a06aae93 2023-07-19  180:         
15a06aae93 2023-07-19  181:         --}
15a06aae93 2023-07-19  182:         
15a06aae93 2023-07-19  183:       else  --{
15a06aae93 2023-07-19  184:         
15a06aae93 2023-07-19  185:         return true
15a06aae93 2023-07-19  186:         
15a06aae93 2023-07-19  187:         end --}
15a06aae93 2023-07-19  188:         
993a6dbc45 2023-07-13  189:       end --}
993a6dbc45 2023-07-13  190:       
993a6dbc45 2023-07-13  191:     end --}
993a6dbc45 2023-07-13  192:     
45478ef823 2023-07-13  193:   return false
45478ef823 2023-07-13  194:   
45478ef823 2023-07-13  195:   end --}
45478ef823 2023-07-13  196:   
45478ef823 2023-07-13  197: fun["开局说明"] = function() --{
993a6dbc45 2023-07-13  198:   
03f04117d2 2023-07-23  199:   str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"]
03f04117d2 2023-07-23  200:   , 0
03f04117d2 2023-07-23  201:   , str["所有区域"]
03f04117d2 2023-07-23  202:   , str["所有区域"]
03f04117d2 2023-07-23  203:   , nil)
03f04117d2 2023-07-23  204:   
a0f5363035 2023-07-23  205:   str["超量素材组"] = Duel.GetOverlayGroup(0
03f04117d2 2023-07-23  206:   , LOCATION_MZONE
03f04117d2 2023-07-23  207:   , LOCATION_MZONE)
03f04117d2 2023-07-23  208:   
a0f5363035 2023-07-23  209:   for k in aux.Next(str["超量素材组"]) do --{
03f04117d2 2023-07-23  210:     
a0f5363035 2023-07-23  211:     if fun["是否效果卡"](k) then --{
993a6dbc45 2023-07-13  212:       
45478ef823 2023-07-13  213:       str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
45478ef823 2023-07-13  214:       
45478ef823 2023-07-13  215:       end --}
993a6dbc45 2023-07-13  216:       
45478ef823 2023-07-13  217:     end --}
993a6dbc45 2023-07-13  218:     
03f04117d2 2023-07-23  219:   str["开局说明"] = str["这个残局的效果卡数量"]
03f04117d2 2023-07-23  220:   .. "卡 "
03f04117d2 2023-07-23  221:   .. str["规则"]
45478ef823 2023-07-13  222:   
45478ef823 2023-07-13  223:   if str["不洗牌"] == 0 then --{
993a6dbc45 2023-07-13  224:     
45478ef823 2023-07-13  225:     --}
993a6dbc45 2023-07-13  226:     
45478ef823 2023-07-13  227:   else --{
993a6dbc45 2023-07-13  228:     
03f04117d2 2023-07-23  229:     str["开局说明"] = str["开局说明"] .. "伪洗牌 "
45478ef823 2023-07-13  230:     
45478ef823 2023-07-13  231:     end --}
993a6dbc45 2023-07-13  232:     
45478ef823 2023-07-13  233:   if str["无BP"] == 0 then --{
993a6dbc45 2023-07-13  234:     
03f04117d2 2023-07-23  235:     str["开局说明"] = str["开局说明"] .. "无BP "
45478ef823 2023-07-13  236:     
45478ef823 2023-07-13  237:     end --}
993a6dbc45 2023-07-13  238:     
993a6dbc45 2023-07-13  239:   if str["开局添加手卡"] then --{
993a6dbc45 2023-07-13  240:     
03f04117d2 2023-07-23  241:     str["开局说明"] = str["开局说明"]
03f04117d2 2023-07-23  242:     .. "选"
ddbc332f5e 2023-07-23  243:     .. str["开局添加手卡的数量"]
ddbc332f5e 2023-07-23  244:     .. "卡 "
993a6dbc45 2023-07-13  245:     
993a6dbc45 2023-07-13  246:     end --}
993a6dbc45 2023-07-13  247:     
993a6dbc45 2023-07-13  248:   if str["禁格"] then --{
993a6dbc45 2023-07-13  249:     
27389a3b0a 2023-07-23  250:     str["开局说明"] = str["开局说明"]
27389a3b0a 2023-07-23  251:     .. "禁"
27389a3b0a 2023-07-23  252:     .. str["禁格的数量"]
27389a3b0a 2023-07-23  253:     .. "格 "
0852ed07b8 2023-07-22  254:     
0852ed07b8 2023-07-22  255:     end --}
0852ed07b8 2023-07-22  256:     
0852ed07b8 2023-07-22  257:   if str["随机抽卡的数量"] then --{
a469e38404 2023-07-22  258:     
27389a3b0a 2023-07-23  259:     str["开局说明"] = str["开局说明"]
27389a3b0a 2023-07-23  260:     .. "抽"
27389a3b0a 2023-07-23  261:     .. str["随机抽卡的数量"]
27389a3b0a 2023-07-23  262:     .. "卡 "
993a6dbc45 2023-07-13  263:     end --}
993a6dbc45 2023-07-13  264:     
993a6dbc45 2023-07-13  265:   Debug.ShowHint(str["开局说明"])
993a6dbc45 2023-07-13  266:   
993a6dbc45 2023-07-13  267:   end --}
993a6dbc45 2023-07-13  268:   
993a6dbc45 2023-07-13  269: fun["开局添加手卡"] = function(str_1) --{
993a6dbc45 2023-07-13  270:   
0d5ba0fc61 2023-07-23  271:   str["开局添加手卡的数量"] = str_1
e8a4eb1d6e 2023-07-16  272:   
6254eda63a 2023-07-23  273:   str["效果"] = Effect.GlobalEffect()
e8a4eb1d6e 2023-07-16  274:   
6254eda63a 2023-07-23  275:   str["效果"]:SetType(EFFECT_TYPE_FIELD
e8a4eb1d6e 2023-07-16  276:   + EFFECT_TYPE_CONTINUOUS)
e8a4eb1d6e 2023-07-16  277:   
6254eda63a 2023-07-23  278:   str["效果"]:SetCode(EVENT_ADJUST)
0f0474f258 2023-07-16  279:   
6254eda63a 2023-07-23  280:   str["效果"]:SetCondition(aux.TRUE)
8e87626fe9 2023-07-16  281:   
8e87626fe9 2023-07-16  282:   function cache_1(effect_event
8e87626fe9 2023-07-16  283:   , player_who_activate_the_effect) --{
8e87626fe9 2023-07-16  284:     
8e87626fe9 2023-07-16  285:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
4e8f89ad97 2023-07-11  286:     , Card.IsAbleToHand
8e87626fe9 2023-07-16  287:     , player_who_activate_the_effect
4e8f89ad97 2023-07-11  288:     , LOCATION_DECK
4e8f89ad97 2023-07-11  289:     , 0
4e8f89ad97 2023-07-11  290:     , str_1
4e8f89ad97 2023-07-11  291:     , str_1
4e8f89ad97 2023-07-11  292:     , nil)
4e8f89ad97 2023-07-11  293:     
4e8f89ad97 2023-07-11  294:     Duel.SendtoHand(str["玩家选定的卡"]
4e8f89ad97 2023-07-11  295:     , nil
4e8f89ad97 2023-07-11  296:     , REASON_RULE)
8e87626fe9 2023-07-16  297:     
e28a9fe965 2023-07-16  298:     effect_event:Reset()
1539e099d7 2023-07-16  299:     
8e87626fe9 2023-07-16  300:     end --}
8e87626fe9 2023-07-16  301:     
6254eda63a 2023-07-23  302:   str["效果"]:SetOperation(cache_1)
8e87626fe9 2023-07-16  303:   
6254eda63a 2023-07-23  304:   Duel.RegisterEffect(str["效果"]
8e87626fe9 2023-07-16  305:   , 0)
17d6844110 2023-07-16  306:   
d5d0e03305 2023-07-11  307:   end --}
993a6dbc45 2023-07-13  308:   
d5d0e03305 2023-07-11  309: fun["禁格"] = function(str_1) --{
993a6dbc45 2023-07-13  310:   
0d5ba0fc61 2023-07-23  311:   str["禁格的数量"] = str_1
6254eda63a 2023-07-23  312:   
6254eda63a 2023-07-23  313:   str["效果"] = Effect.GlobalEffect()
6254eda63a 2023-07-23  314:   
6254eda63a 2023-07-23  315:   str["效果"]:SetCode(EFFECT_USE_EXTRA_MZONE)
6254eda63a 2023-07-23  316:   
6254eda63a 2023-07-23  317:   str["效果"]:SetValue(str_1)
6254eda63a 2023-07-23  318:   
6254eda63a 2023-07-23  319:   Duel.RegisterEffect(str["效果"],0)
6254eda63a 2023-07-23  320:   
0d5ba0fc61 2023-07-23  321:   end --}
0d5ba0fc61 2023-07-23  322:   
8a01ebbad2 2023-07-23  323: fun["该效果不能被连锁"] = function() --{
8a01ebbad2 2023-07-23  324:   
8a01ebbad2 2023-07-23  325:   Duel.SetChainLimit(aux.FALSE)
8a01ebbad2 2023-07-23  326:   
8a01ebbad2 2023-07-23  327:   return true
8a01ebbad2 2023-07-23  328:   end --}
8a01ebbad2 2023-07-23  329:   
d5d0e03305 2023-07-11  330: fun["印卡"] = function(str_1, str_2, str_3) --{
d5d0e03305 2023-07-11  331:   
d5d0e03305 2023-07-11  332:   if str_3 then --{
993a6dbc45 2023-07-13  333:     
d5d0e03305 2023-07-11  334:     --}
993a6dbc45 2023-07-13  335:     
d5d0e03305 2023-07-11  336:   else --{
993a6dbc45 2023-07-13  337:     
d5d0e03305 2023-07-11  338:     str_3 = str_2
45478ef823 2023-07-13  339:     
d5d0e03305 2023-07-11  340:     end --}
993a6dbc45 2023-07-13  341:     
0d5ba0fc61 2023-07-23  342:   Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 "
0d5ba0fc61 2023-07-23  343:   .. str_2
0d5ba0fc61 2023-07-23  344:   .. " 张。\n最多可以印 "
0d5ba0fc61 2023-07-23  345:   .. str_3
0d5ba0fc61 2023-07-23  346:   .. " 张")
6254eda63a 2023-07-23  347:   
6254eda63a 2023-07-23  348:   str["效果"] = Effect.CreateEffect(str_1)
9a1184f29f 2023-07-22  349:   
9a1184f29f 2023-07-22  350:   str["当前印卡数"] = 1
9a1184f29f 2023-07-22  351:   
6254eda63a 2023-07-23  352:   str["效果"]:SetType(EFFECT_TYPE_IGNITION)
9a1184f29f 2023-07-22  353:   
6254eda63a 2023-07-23  354:   str["效果"]:SetProperty(EFFECT_FLAG_BOTH_SIDE
d5d0e03305 2023-07-11  355:   + EFFECT_FLAG_UNCOPYABLE
d5d0e03305 2023-07-11  356:   + EFFECT_FLAG_CANNOT_NEGATE
d5d0e03305 2023-07-11  357:   + EFFECT_FLAG_CANNOT_DISABLE)
d5d0e03305 2023-07-11  358:   
8a01ebbad2 2023-07-23  359:   str["效果"]:SetTarget(fun["该效果不能被连锁"])
6254eda63a 2023-07-23  360:   
6254eda63a 2023-07-23  361:   str["效果"]:SetRange(LOCATION_EXTRA)
d5d0e03305 2023-07-11  362:   
d5d0e03305 2023-07-11  363:   function print_hand(effect_event
d5d0e03305 2023-07-11  364:   , player_who_activate_the_effect) --{
993a6dbc45 2023-07-13  365:     
d5d0e03305 2023-07-11  366:     announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
d5d0e03305 2023-07-11  367:     
d5d0e03305 2023-07-11  368:     card = Duel.CreateToken(player_who_activate_the_effect
d5d0e03305 2023-07-11  369:     , announce_card)
d5d0e03305 2023-07-11  370:     
d5d0e03305 2023-07-11  371:     if str["当前印卡数"] <= str_2 then --{
993a6dbc45 2023-07-13  372:       
d5d0e03305 2023-07-11  373:       str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  374:       
d5d0e03305 2023-07-11  375:       Duel.SendtoHand(card,nil,REASON_RULE)
45478ef823 2023-07-13  376:       
d5d0e03305 2023-07-11  377:       --}
993a6dbc45 2023-07-13  378:       
d5d0e03305 2023-07-11  379:     else --{
993a6dbc45 2023-07-13  380:       
d5d0e03305 2023-07-11  381:       if str["当前印卡数"] <= str_3 then --{
993a6dbc45 2023-07-13  382:         
d5d0e03305 2023-07-11  383:         str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  384:         
d5d0e03305 2023-07-11  385:         Duel.Remove(card,POS_FACEUP,REASON_RULE)
d5d0e03305 2023-07-11  386:         
d5d0e03305 2023-07-11  387:         Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
45478ef823 2023-07-13  388:         
d5d0e03305 2023-07-11  389:         --}
993a6dbc45 2023-07-13  390:         
993a6dbc45 2023-07-13  391:       else --{
993a6dbc45 2023-07-13  392:         
27c36deea8 2023-07-23  393:         Debug.ShowHint("印卡过多!")
993a6dbc45 2023-07-13  394:         
a30b9aba5d 2023-07-16  395:         effect_event:Reset()
a30b9aba5d 2023-07-16  396:         
993a6dbc45 2023-07-13  397:         end --}
993a6dbc45 2023-07-13  398:         
993a6dbc45 2023-07-13  399:       end --}
993a6dbc45 2023-07-13  400:       
993a6dbc45 2023-07-13  401:     end --}
993a6dbc45 2023-07-13  402:     
6254eda63a 2023-07-23  403:   str["效果"]:SetOperation(print_hand)
0852ed07b8 2023-07-22  404:   
6254eda63a 2023-07-23  405:   str_1:RegisterEffect(str["效果"])
0852ed07b8 2023-07-22  406:   
0852ed07b8 2023-07-22  407:   end --}
0852ed07b8 2023-07-22  408:   
0852ed07b8 2023-07-22  409: fun["随机抽卡"] = function(str_1) --{
a469e38404 2023-07-22  410:   
0852ed07b8 2023-07-22  411:   str["随机抽卡的数量"] = str_1
63daf9144a 2023-07-22  412:   
6254eda63a 2023-07-23  413:   str["效果"] = Effect.GlobalEffect()
63daf9144a 2023-07-22  414:   
6254eda63a 2023-07-23  415:   str["效果"]:SetType(EFFECT_TYPE_FIELD
63daf9144a 2023-07-22  416:   + EFFECT_TYPE_CONTINUOUS)
63daf9144a 2023-07-22  417:   
6254eda63a 2023-07-23  418:   str["效果"]:SetCode(EVENT_ADJUST)
63daf9144a 2023-07-22  419:   
6254eda63a 2023-07-23  420:   str["效果"]:SetCondition(aux.TRUE)
63daf9144a 2023-07-22  421:   
63daf9144a 2023-07-22  422:   function cache_1(effect_event
63daf9144a 2023-07-22  423:   , player_who_activate_the_effect) --{
a469e38404 2023-07-22  424:     
63daf9144a 2023-07-22  425:     Duel.ShuffleDeck(0)
a469e38404 2023-07-22  426:     
63daf9144a 2023-07-22  427:     Duel.Draw(0,str_1,REASON_RULE)
63daf9144a 2023-07-22  428:     
63daf9144a 2023-07-22  429:     effect_event:Reset()
63daf9144a 2023-07-22  430:     
63daf9144a 2023-07-22  431:     end --}
63daf9144a 2023-07-22  432:     
6254eda63a 2023-07-23  433:   str["效果"]:SetOperation(cache_1)
63daf9144a 2023-07-22  434:   
6254eda63a 2023-07-23  435:   Duel.RegisterEffect(str["效果"]
63daf9144a 2023-07-22  436:   , 0)
a469e38404 2023-07-22  437:   
66a03a682a 2023-07-20  438:   end --}
3aa3657ce7 2023-07-15  439: