游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

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

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")
993a6dbc45 2023-07-13  126:       
993a6dbc45 2023-07-13  127:       --}
993a6dbc45 2023-07-13  128:       
993a6dbc45 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)
262ab836d0 2023-07-19  190:   
03f04117d2 2023-07-23  191:   cache_1 = Duel.GetOverlayGroup(0
03f04117d2 2023-07-23  192:   , LOCATION_MZONE
03f04117d2 2023-07-23  193:   , LOCATION_MZONE)
45478ef823 2023-07-13  194:   
45478ef823 2023-07-13  195:   for k in aux.Next(cache_1) do --{
993a6dbc45 2023-07-13  196:     
45478ef823 2023-07-13  197:     cache_1 = fun["是否效果卡"](k)
45478ef823 2023-07-13  198:     
45478ef823 2023-07-13  199:     if cache_1 then --{
993a6dbc45 2023-07-13  200:       
45478ef823 2023-07-13  201:       str["这个残局的效果卡数量"] = str["这个残局的效果卡数量"] + 1
45478ef823 2023-07-13  202:       
45478ef823 2023-07-13  203:       end --}
993a6dbc45 2023-07-13  204:       
45478ef823 2023-07-13  205:     end --}
993a6dbc45 2023-07-13  206:     
03f04117d2 2023-07-23  207:   str["开局说明"] = str["这个残局的效果卡数量"]
03f04117d2 2023-07-23  208:   .. "卡 "
03f04117d2 2023-07-23  209:   .. str["规则"]
45478ef823 2023-07-13  210:   
45478ef823 2023-07-13  211:   if str["不洗牌"] == 0 then --{
993a6dbc45 2023-07-13  212:     
45478ef823 2023-07-13  213:     --}
993a6dbc45 2023-07-13  214:     
45478ef823 2023-07-13  215:   else --{
993a6dbc45 2023-07-13  216:     
03f04117d2 2023-07-23  217:     str["开局说明"] = str["开局说明"] .. "伪洗牌 "
45478ef823 2023-07-13  218:     
45478ef823 2023-07-13  219:     end --}
993a6dbc45 2023-07-13  220:     
45478ef823 2023-07-13  221:   if str["无BP"] == 0 then --{
993a6dbc45 2023-07-13  222:     
03f04117d2 2023-07-23  223:     str["开局说明"] = str["开局说明"] .. "无BP "
45478ef823 2023-07-13  224:     
45478ef823 2023-07-13  225:     end --}
993a6dbc45 2023-07-13  226:     
993a6dbc45 2023-07-13  227:   if str["开局添加手卡"] then --{
993a6dbc45 2023-07-13  228:     
03f04117d2 2023-07-23  229:     str["开局说明"] = str["开局说明"]
03f04117d2 2023-07-23  230:     .. "选"
ddbc332f5e 2023-07-23  231:     .. str["开局添加手卡的数量"]
ddbc332f5e 2023-07-23  232:     .. "卡 "
993a6dbc45 2023-07-13  233:     
993a6dbc45 2023-07-13  234:     end --}
993a6dbc45 2023-07-13  235:     
993a6dbc45 2023-07-13  236:   if str["禁格"] then --{
993a6dbc45 2023-07-13  237:     
27389a3b0a 2023-07-23  238:     str["开局说明"] = str["开局说明"]
27389a3b0a 2023-07-23  239:     .. "禁"
27389a3b0a 2023-07-23  240:     .. str["禁格的数量"]
27389a3b0a 2023-07-23  241:     .. "格 "
0852ed07b8 2023-07-22  242:     
0852ed07b8 2023-07-22  243:     end --}
0852ed07b8 2023-07-22  244:     
0852ed07b8 2023-07-22  245:   if str["随机抽卡的数量"] then --{
a469e38404 2023-07-22  246:     
27389a3b0a 2023-07-23  247:     str["开局说明"] = str["开局说明"]
27389a3b0a 2023-07-23  248:     .. "抽"
27389a3b0a 2023-07-23  249:     .. str["随机抽卡的数量"]
27389a3b0a 2023-07-23  250:     .. "卡 "
993a6dbc45 2023-07-13  251:     end --}
993a6dbc45 2023-07-13  252:     
993a6dbc45 2023-07-13  253:   Debug.ShowHint(str["开局说明"])
993a6dbc45 2023-07-13  254:   
993a6dbc45 2023-07-13  255:   end --}
993a6dbc45 2023-07-13  256:   
993a6dbc45 2023-07-13  257: fun["开局添加手卡"] = function(str_1) --{
993a6dbc45 2023-07-13  258:   
0d5ba0fc61 2023-07-23  259:   str["开局添加手卡的数量"] = str_1
e8a4eb1d6e 2023-07-16  260:   
6254eda63a 2023-07-23  261:   str["效果"] = Effect.GlobalEffect()
e8a4eb1d6e 2023-07-16  262:   
6254eda63a 2023-07-23  263:   str["效果"]:SetType(EFFECT_TYPE_FIELD
e8a4eb1d6e 2023-07-16  264:   + EFFECT_TYPE_CONTINUOUS)
e8a4eb1d6e 2023-07-16  265:   
6254eda63a 2023-07-23  266:   str["效果"]:SetCode(EVENT_ADJUST)
0f0474f258 2023-07-16  267:   
6254eda63a 2023-07-23  268:   str["效果"]:SetCondition(aux.TRUE)
8e87626fe9 2023-07-16  269:   
8e87626fe9 2023-07-16  270:   function cache_1(effect_event
8e87626fe9 2023-07-16  271:   , player_who_activate_the_effect) --{
8e87626fe9 2023-07-16  272:     
8e87626fe9 2023-07-16  273:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
4e8f89ad97 2023-07-11  274:     , Card.IsAbleToHand
8e87626fe9 2023-07-16  275:     , player_who_activate_the_effect
4e8f89ad97 2023-07-11  276:     , LOCATION_DECK
4e8f89ad97 2023-07-11  277:     , 0
4e8f89ad97 2023-07-11  278:     , str_1
4e8f89ad97 2023-07-11  279:     , str_1
4e8f89ad97 2023-07-11  280:     , nil)
4e8f89ad97 2023-07-11  281:     
4e8f89ad97 2023-07-11  282:     Duel.SendtoHand(str["玩家选定的卡"]
4e8f89ad97 2023-07-11  283:     , nil
4e8f89ad97 2023-07-11  284:     , REASON_RULE)
8e87626fe9 2023-07-16  285:     
e28a9fe965 2023-07-16  286:     effect_event:Reset()
1539e099d7 2023-07-16  287:     
8e87626fe9 2023-07-16  288:     end --}
8e87626fe9 2023-07-16  289:     
6254eda63a 2023-07-23  290:   str["效果"]:SetOperation(cache_1)
8e87626fe9 2023-07-16  291:   
6254eda63a 2023-07-23  292:   Duel.RegisterEffect(str["效果"]
8e87626fe9 2023-07-16  293:   , 0)
17d6844110 2023-07-16  294:   
993a6dbc45 2023-07-13  295:   end --}
993a6dbc45 2023-07-13  296:   
993a6dbc45 2023-07-13  297: fun["禁格"] = function(str_1) --{
993a6dbc45 2023-07-13  298:   
0d5ba0fc61 2023-07-23  299:   str["禁格的数量"] = str_1
6254eda63a 2023-07-23  300:   
6254eda63a 2023-07-23  301:   str["效果"] = Effect.GlobalEffect()
6254eda63a 2023-07-23  302:   
6254eda63a 2023-07-23  303:   str["效果"]:SetCode(EFFECT_USE_EXTRA_MZONE)
6254eda63a 2023-07-23  304:   
6254eda63a 2023-07-23  305:   str["效果"]:SetValue(str_1)
6254eda63a 2023-07-23  306:   
6254eda63a 2023-07-23  307:   Duel.RegisterEffect(str["效果"],0)
993a6dbc45 2023-07-13  308:   
993a6dbc45 2023-07-13  309:   end --}
993a6dbc45 2023-07-13  310:   
993a6dbc45 2023-07-13  311: fun["印卡"] = function(str_1, str_2, str_3) --{
993a6dbc45 2023-07-13  312:   
993a6dbc45 2023-07-13  313:   if str_3 then --{
993a6dbc45 2023-07-13  314:     
993a6dbc45 2023-07-13  315:     --}
993a6dbc45 2023-07-13  316:     
993a6dbc45 2023-07-13  317:   else --{
993a6dbc45 2023-07-13  318:     
d5d0e03305 2023-07-11  319:     str_3 = str_2
45478ef823 2023-07-13  320:     
d5d0e03305 2023-07-11  321:     end --}
993a6dbc45 2023-07-13  322:     
0d5ba0fc61 2023-07-23  323:   Debug.ShowHint("点击对方额外卡组可以进行印卡。\n手卡只能印 "
0d5ba0fc61 2023-07-23  324:   .. str_2
0d5ba0fc61 2023-07-23  325:   .. " 张。\n最多可以印 "
0d5ba0fc61 2023-07-23  326:   .. str_3
0d5ba0fc61 2023-07-23  327:   .. " 张")
6254eda63a 2023-07-23  328:   
6254eda63a 2023-07-23  329:   str["效果"] = Effect.CreateEffect(str_1)
9a1184f29f 2023-07-22  330:   
9a1184f29f 2023-07-22  331:   str["当前印卡数"] = 1
9a1184f29f 2023-07-22  332:   
6254eda63a 2023-07-23  333:   str["效果"]:SetType(EFFECT_TYPE_IGNITION)
9a1184f29f 2023-07-22  334:   
6254eda63a 2023-07-23  335:   str["效果"]:SetProperty(EFFECT_FLAG_BOTH_SIDE
d5d0e03305 2023-07-11  336:   + EFFECT_FLAG_UNCOPYABLE
d5d0e03305 2023-07-11  337:   + EFFECT_FLAG_CANNOT_NEGATE
d5d0e03305 2023-07-11  338:   + EFFECT_FLAG_CANNOT_DISABLE)
d5d0e03305 2023-07-11  339:   
d5d0e03305 2023-07-11  340:   cache_1 = function() --{
993a6dbc45 2023-07-13  341:     
d5d0e03305 2023-07-11  342:     Duel.SetChainLimit(aux.FALSE)
d5d0e03305 2023-07-11  343:     
d5d0e03305 2023-07-11  344:     return true
45478ef823 2023-07-13  345:     
d5d0e03305 2023-07-11  346:     end --}
993a6dbc45 2023-07-13  347:     
6254eda63a 2023-07-23  348:   str["效果"]:SetTarget(cache_1)
d5d0e03305 2023-07-11  349:   
6254eda63a 2023-07-23  350:   str["效果"]:SetRange(LOCATION_EXTRA)
d5d0e03305 2023-07-11  351:   
d5d0e03305 2023-07-11  352:   function print_hand(effect_event
d5d0e03305 2023-07-11  353:   , player_who_activate_the_effect) --{
993a6dbc45 2023-07-13  354:     
d5d0e03305 2023-07-11  355:     announce_card = Duel.AnnounceCard(player_who_activate_the_effect)
d5d0e03305 2023-07-11  356:     
d5d0e03305 2023-07-11  357:     card = Duel.CreateToken(player_who_activate_the_effect
d5d0e03305 2023-07-11  358:     , announce_card)
d5d0e03305 2023-07-11  359:     
d5d0e03305 2023-07-11  360:     if str["当前印卡数"] <= str_2 then --{
993a6dbc45 2023-07-13  361:       
d5d0e03305 2023-07-11  362:       str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  363:       
d5d0e03305 2023-07-11  364:       Duel.SendtoHand(card,nil,REASON_RULE)
45478ef823 2023-07-13  365:       
d5d0e03305 2023-07-11  366:       --}
993a6dbc45 2023-07-13  367:       
d5d0e03305 2023-07-11  368:     else --{
993a6dbc45 2023-07-13  369:       
d5d0e03305 2023-07-11  370:       if str["当前印卡数"] <= str_3 then --{
993a6dbc45 2023-07-13  371:         
d5d0e03305 2023-07-11  372:         str["当前印卡数"] = str["当前印卡数"] + 1
d5d0e03305 2023-07-11  373:         
d5d0e03305 2023-07-11  374:         Duel.Remove(card,POS_FACEUP,REASON_RULE)
d5d0e03305 2023-07-11  375:         
d5d0e03305 2023-07-11  376:         Duel.SendtoDeck(card,player_who_activate_the_effect,0,REASON_RULE)
45478ef823 2023-07-13  377:         
d5d0e03305 2023-07-11  378:         --}
993a6dbc45 2023-07-13  379:         
993a6dbc45 2023-07-13  380:       else --{
993a6dbc45 2023-07-13  381:         
27c36deea8 2023-07-23  382:         Debug.ShowHint("印卡过多!")
993a6dbc45 2023-07-13  383:         
a30b9aba5d 2023-07-16  384:         effect_event:Reset()
a30b9aba5d 2023-07-16  385:         
993a6dbc45 2023-07-13  386:         end --}
993a6dbc45 2023-07-13  387:         
993a6dbc45 2023-07-13  388:       end --}
993a6dbc45 2023-07-13  389:       
993a6dbc45 2023-07-13  390:     end --}
993a6dbc45 2023-07-13  391:     
6254eda63a 2023-07-23  392:   str["效果"]:SetOperation(print_hand)
0852ed07b8 2023-07-22  393:   
6254eda63a 2023-07-23  394:   str_1:RegisterEffect(str["效果"])
0852ed07b8 2023-07-22  395:   
0852ed07b8 2023-07-22  396:   end --}
0852ed07b8 2023-07-22  397:   
0852ed07b8 2023-07-22  398: fun["随机抽卡"] = function(str_1) --{
a469e38404 2023-07-22  399:   
0852ed07b8 2023-07-22  400:   str["随机抽卡的数量"] = str_1
63daf9144a 2023-07-22  401:   
6254eda63a 2023-07-23  402:   str["效果"] = Effect.GlobalEffect()
63daf9144a 2023-07-22  403:   
6254eda63a 2023-07-23  404:   str["效果"]:SetType(EFFECT_TYPE_FIELD
63daf9144a 2023-07-22  405:   + EFFECT_TYPE_CONTINUOUS)
63daf9144a 2023-07-22  406:   
6254eda63a 2023-07-23  407:   str["效果"]:SetCode(EVENT_ADJUST)
63daf9144a 2023-07-22  408:   
6254eda63a 2023-07-23  409:   str["效果"]:SetCondition(aux.TRUE)
63daf9144a 2023-07-22  410:   
63daf9144a 2023-07-22  411:   function cache_1(effect_event
63daf9144a 2023-07-22  412:   , player_who_activate_the_effect) --{
a469e38404 2023-07-22  413:     
63daf9144a 2023-07-22  414:     Duel.ShuffleDeck(0)
a469e38404 2023-07-22  415:     
63daf9144a 2023-07-22  416:     Duel.Draw(0,str_1,REASON_RULE)
63daf9144a 2023-07-22  417:     
63daf9144a 2023-07-22  418:     effect_event:Reset()
63daf9144a 2023-07-22  419:     
63daf9144a 2023-07-22  420:     end --}
63daf9144a 2023-07-22  421:     
6254eda63a 2023-07-23  422:   str["效果"]:SetOperation(cache_1)
63daf9144a 2023-07-22  423:   
6254eda63a 2023-07-23  424:   Duel.RegisterEffect(str["效果"]
63daf9144a 2023-07-22  425:   , 0)
a469e38404 2023-07-22  426:   
66a03a682a 2023-07-20  427:   end --}
3aa3657ce7 2023-07-15  428: