游戏王残局简化版

19.Let's GaGaGa.lua at [9143841dc1]
Login

19.Let's GaGaGa.lua at [9143841dc1]

File 19.Let's GaGaGa.lua artifact 822ce4be27 part of check-in 9143841dc1


--[[message
卡数:27
规则:大师3
一起来我我我
]]
--puzzle1
Debug.SetAIName("四妹")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,3)
Debug.SetPlayerInfo(0,700,0,0)
Debug.SetPlayerInfo(1,12200,0,0)

local e0=Effect.GlobalEffect()
e0:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_ADJUST)
e0:SetCountLimit(1)
e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(0)>0 end)
e0:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK,0,6,6,nil)
if g:GetCount()>0 then
  Duel.SendtoHand(g,nil,REASON_RULE)
end end)
Duel.RegisterEffect(e0,0)

Debug.AddCard(14785765,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(71453557,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(72355441,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(90673413,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(51790181,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(81816475,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(12298909,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(52105192,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(98494543,0,0,LOCATION_DECK,0,POS_FACEDOWN)
--~ Debug.AddCard(72355441,0,0,LOCATION_DECK,0,POS_FACEDOWN)
--~ Debug.AddCard(90673413,0,0,LOCATION_DECK,0,POS_FACEDOWN)
--~ Debug.AddCard(51790181,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(26082117,0,0,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(33420078,0,0,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(77334267,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(92661479,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(38495396,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(91949988,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(95040215,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)
Debug.AddCard(65878864,0,0,LOCATION_MZONE,2,POS_FACEDOWN_DEFENSE)
Debug.AddCard(61705417,0,0,LOCATION_SZONE,1,POS_FACEDOWN)
Debug.AddCard(97077563,0,0,LOCATION_SZONE,2,POS_FACEDOWN)
Debug.AddCard(44330098,1,1,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(75652080,1,1,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(34710660,1,1,LOCATION_GRAVE,0,POS_FACEUP)
Debug.AddCard(80117527,1,1,LOCATION_GRAVE,0,POS_FACEUP,true)
Debug.AddCard(1992816,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK,true)
Debug.AddCard(89631139,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
local g1=Debug.AddCard(66235877,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
g1:CompleteProcedure()
Debug.AddCard(44095762,1,1,LOCATION_SZONE,1,POS_FACEDOWN)
Debug.AddCard(44095762,1,1,LOCATION_SZONE,2,POS_FACEDOWN)
Debug.AddCard(44095762,1,1,LOCATION_SZONE,3,POS_FACEDOWN)
Debug.ReloadFieldEnd()
--~ Debug.ShowHint("在这个回合取得胜利!")
Debug.ShowHint("从卡组中选择六张卡加入手卡!")
aux.BeginPuzzle()
local e999=Effect.GlobalEffect()
e999:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e999:SetCode(EVENT_DAMAGE)
e999:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(1)<=0 end)
e999:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
Debug.ShowHint("残局群181175613") end)
Duel.RegisterEffect(e999,0)