游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

Origin for each line in script/c0.lua from check-in 8a01ebbad2:

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