游戏王残局简化版

Naim_Lyrilusc.lua at [79f4dec738]
Login

Naim_Lyrilusc.lua at [79f4dec738]

File Naim_Lyrilusc.lua artifact 115067409b part of check-in 79f4dec738


--[[message
卡数:12
规则:大师2020
Multiple attackers are fun when you can abuse them. Even funnier if they can attack directly.
]]
Debug.SetAIName("Naim")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI+DUEL_PSEUDO_SHUFFLE,5)
Debug.SetPlayerInfo(0,100,0,0)
Debug.SetPlayerInfo(1,14900,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,2,2,nil)
if g:GetCount()>0 then
  Duel.SendtoHand(g,nil,REASON_RULE)
end end)
Duel.RegisterEffect(e0,0)

--your hand
Debug.AddCard(97949165,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)		--turquoise
Debug.AddCard(34550857,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)		--cobalt
Debug.AddCard(85431040,0,0,LOCATION_HAND,0,POS_FACEUP_ATTACK)		--evil thorn
Debug.AddCard(45452224,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)		--where arf thou
Debug.AddCard(43422537,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK)		--double summon

--your deck
Debug.AddCard(85431040,0,0,LOCATION_DECK,0,POS_FACEDOWN)			--evil thorn
Debug.AddCard(85431040,0,0,LOCATION_DECK,0,POS_FACEDOWN)			--evil thorn
Debug.AddCard(60954556,0,0,LOCATION_DECK,0,POS_FACEDOWN)			--sapphire
Debug.AddCard(60954556,0,0,LOCATION_DECK,0,POS_FACEDOWN)			--sapphire

--your extra deck
Debug.AddCard(8491961,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)		--recite starling
Debug.AddCard(8491961,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)		--recite starling
Debug.AddCard(48608796,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)		--assembly nightingale

--opponent's
Debug.AddCard(46986414,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)		--Legendary Fisherman III

--Insert any message here
--insert additional message here
Debug.ReloadFieldEnd()

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)
--~ Debug.ShowHint("Win this turn!")