游戏王残局简化版

Annotation For 31.Cluster of Shark Offensive.lua
Login

Annotation For 31.Cluster of Shark Offensive.lua

Lines of 31.Cluster of Shark Offensive.lua from check-in 92adb57cf1 that are changed by the sequence of edits moving toward check-in 94987762c1:

                         1: --[[message
                         2: 卡数:38
                         3: 规则:大师3
                         4: 群鲨攻势
                         5: ]]
                         6: Debug.SetAIName("四妹")
                         7: Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,3)
                         8: Debug.SetPlayerInfo(0,1100,0,0)
                         9: Debug.SetPlayerInfo(1,51100,0,0)
                        10: 
                        11: --~ local e0=Effect.GlobalEffect()
                        12: --~ e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
                        13: --~ e0:SetCode(EVENT_ADJUST)
                        14: --~ e0:SetCountLimit(1)
                        15: --~ e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(0)>0 end)
                        16: --~ e0:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
                        17: --~ local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,6,6,nil)
                        18: --~ if g:GetCount()>0 then
                        19: --~   Duel.SendtoHand(g,nil,REASON_RULE)
                        20: --~ end end)
                        21: --~ Duel.RegisterEffect(e0,0)
                        22: 
                        23: Debug.AddCard(25067275,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        24: Debug.AddCard(67675300,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        25: Debug.AddCard(9952083,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        26: Debug.AddCard(43138260,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        27: Debug.AddCard(56747793,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        28: Debug.AddCard(40916023,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        29: Debug.AddCard(3972721,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        30: Debug.AddCard(15893860,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        31: Debug.AddCard(72355441,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        32: Debug.AddCard(64319467,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        33: Debug.AddCard(1845204,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        34: Debug.AddCard(96947648,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        35: Debug.AddCard(26400609,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        36: Debug.AddCard(90303176,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        37: --~ Debug.AddCard(9952083,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        38: --~ Debug.AddCard(43138260,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        39: Debug.AddCard(72355441,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        40: --~ Debug.AddCard(64319467,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        41: --~ Debug.AddCard(1845204,0,0,LOCATION_DECK,0,POS_FACEDOWN)
                        42: Debug.AddCard(62023839,0,0,LOCATION_GRAVE,0,POS_FACEDOWN)
                        43: Debug.AddCard(51282878,0,0,LOCATION_GRAVE,0,POS_FACEDOWN)
                        44: Debug.AddCard(27174286,0,0,LOCATION_SZONE,1,POS_FACEDOWN)
                        45: Debug.AddCard(26708437,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
                        46: Debug.AddCard(7092142,0,0,LOCATION_SZONE,3,POS_FACEDOWN)
                        47: Debug.AddCard(21044178,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        48: Debug.AddCard(21044178,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        49: Debug.AddCard(440556,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        50: Debug.AddCard(65676461,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        51: Debug.AddCard(65676461,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        52: Debug.AddCard(49221191,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        53: Debug.AddCard(52687916,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        54: Debug.AddCard(80516007,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
                        55: Debug.AddCard(12275533,1,1,LOCATION_DECK,0,POS_FACEDOWN)
                        56: Debug.AddCard(82593786,1,1,LOCATION_HAND,0,POS_FACEDOWN)
                        57: Debug.AddCard(30042158,1,1,LOCATION_GRAVE,0,POS_FACEDOWN)
                        58: Debug.AddCard(39823987,1,1,LOCATION_GRAVE,0,POS_FACEDOWN,true)
                        59: Debug.AddCard(44155002,1,1,LOCATION_MZONE,0,POS_FACEUP_ATTACK,true)
92adb57cf1 2023-06-28   60: Debug.AddCard(46986414,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK,true)
                        61: Debug.AddCard(66818682,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK,true)
                        62: Debug.AddCard(93353691,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK,true)
                        63: Debug.AddCard(44508094,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK,true)
                        64: Debug.AddCard(80887714,1,1,LOCATION_SZONE,0,POS_FACEDOWN)
                        65: Debug.AddCard(20721759,1,1,LOCATION_SZONE,1,POS_FACEDOWN)
                        66: Debug.AddCard(96008713,1,1,LOCATION_SZONE,3,POS_FACEDOWN)
                        67: Debug.AddCard(75105429,1,1,LOCATION_SZONE,4,POS_FACEDOWN)
                        68: Debug.ReloadFieldEnd()
                        69: aux.BeginPuzzle()
                        70: 
                        71: local str = {}
                        72: local fun = {}
                        73: 
                        74: local cache_1
                        75: local cache_2
                        76: 
                        77: fun["通关邀请"] = function()
                        78:   local effect_1
                        79:   effect_1 = Effect.GlobalEffect()
                        80:   effect_1:SetType(EFFECT_TYPE_FIELD
                        81:     + EFFECT_TYPE_CONTINUOUS)
                        82:   effect_1:SetCode(EVENT_DAMAGE)
                        83:   function cache_1()
                        84:     cache_1 = Duel.GetLP(1)
                        85:     if cache_1 <= 0 then
                        86:       cache_1 = true
                        87:     else
                        88:       cache_1 = false
                        89:       end
                        90:     return cache_1
                        91:     end
                        92:   effect_1:SetCondition(cache_1)
                        93:   function cache_1()
                        94:     Debug.ShowHint("残局群181175613")
                        95:     return
                        96:     end
                        97:   effect_1:SetOperation(cache_1)
                        98:   Duel.RegisterEffect(effect_1
                        99:     , 0)
                       100:   end
                       101: 
                       102: fun["开局添加手卡"] = function(str_1)
                       103:   local effect_1
                       104:   effect_1 = Effect.GlobalEffect()
                       105:   effect_1:SetType(EFFECT_TYPE_FIELD
                       106:     + EFFECT_TYPE_CONTINUOUS)
                       107:   effect_1:SetCode(EVENT_ADJUST)
                       108:   effect_1:SetCountLimit(1)
                       109:   function cache_1()
                       110:     return true
                       111:     end
                       112:   effect_1:SetCondition(cache_1)
                       113:   function cache_1(effect_event
                       114:     , player_who_activate_the_effect)
                       115:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
                       116:        , Card.IsAbleToHand
                       117:        , player_who_activate_the_effect
                       118:        , LOCATION_DECK
                       119:        , 0
                       120:        , str_1
                       121:        , str_1
                       122:        , nil)
                       123:     Duel.SendtoHand(str["玩家选定的卡"]
                       124:       , nil
                       125:       , REASON_RULE)
                       126:     end
                       127:   effect_1:SetOperation(cache_1)
                       128:   Duel.RegisterEffect(effect_1
                       129:     , 0)
                       130:   end
                       131: 
                       132: fun["通关邀请"]()
                       133: fun["开局添加手卡"](6)
                       134: