--[[message
更新：2023-04-03
卡数：
规则：大师2020
]]
--created by puzzle editor
Debug.SetAIName("棉花")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_PSEUDO_SHUFFLE+DUEL_SIMPLE_AI,5)
Debug.SetPlayerInfo(0,8000,0,0)
Debug.SetPlayerInfo(1,24600,0,0)

--自己的怪兽区
Debug.AddCard(9929398,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK) --黑羽-胧影之业风
--对方的怪兽区
--自己的魔陷区
Debug.AddCard(14735698,0,0,LOCATION_SZONE,0,POS_FACEDOWN_ATTACK) --影灵衣的降魔镜
--对方的魔陷区
--自己的手卡
Debug.AddCard(73680966,0,0,LOCATION_HAND,3,POS_FACEUP_ATTACK) --终结之始
--对方的手卡
--自己的墓地
Debug.AddCard(57421866,0,0,LOCATION_GRAVE,0,POS_FACEUP_ATTACK) --等级偷窃虫
--对方的墓地
--自己除外的卡
--对方除外的卡
--自己的卡组
Debug.AddCard(9742784,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) --喷气同调士
Debug.AddCard(63977008,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) --废品同调士
Debug.AddCard(63977008,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK) --废品同调士
Debug.AddCard(99946920,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) --魔龙星-饕餮
Debug.AddCard(25935625,0,0,LOCATION_DECK,0,POS_FACEUP_ATTACK) --暗龙星-椒图
Debug.AddCard(52846880,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK) --灾亡虫之影灵衣
Debug.AddCard(89463537,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK) --尤尼科之影灵衣
Debug.AddCard(9622164,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK) --异次元复活
Debug.AddCard(9622164,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK) --异次元复活
Debug.AddCard(9622164,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK) --异次元复活
Debug.AddCard(9720537,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK) --所有者的刻印
Debug.AddCard(7672244,0,0,LOCATION_DECK,0,POS_FACEDOWN_ATTACK) --紫炎的间者
--对方的卡组
--自己的额外
Debug.AddCard(35952884,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --流天类星龙
Debug.AddCard(35952884,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --流天类星龙
Debug.AddCard(35952884,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --流天类星龙
Debug.AddCard(97836203,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --科技属 戟炮手
Debug.AddCard(68431965,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --流星登龙
Debug.AddCard(83755611,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --辉龙星-蚣蝮
Debug.AddCard(2403771,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --动力工具龙
Debug.AddCard(53389254,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --强袭黑羽-五月雨之骚速刀鸟
Debug.AddCard(53389254,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --强袭黑羽-五月雨之骚速刀鸟
Debug.AddCard(37675907,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --加速同调士
Debug.AddCard(65536818,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --源龙星-望天吼
Debug.AddCard(79606837,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --虹光之宣告者
Debug.AddCard(81846453,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --武力军奏
Debug.AddCard(62560742,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --科技属 互换蜻蜓
Debug.AddCard(55863245,0,0,LOCATION_EXTRA,0,POS_FACEDOWN_ATTACK) --龙子

local e1=Effect.GlobalEffect()
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_USE_EXTRA_MZONE)
e1:SetValue(2)
Duel.RegisterEffect(e1,0)

Debug.ReloadFieldEnd()
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)
