--[[message
更新：2023-04-10
卡数：3
规则：新大师
]]
--By OURYGO-YGO EZ manager
Debug.SetAIName("顽雨沉风")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,4)
Debug.SetPlayerInfo(0,8000,0,0)
Debug.SetPlayerInfo(1,1250,0,0)
Debug.AddCard(55713623,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(09952083,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(69140099,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(27288416,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(27288416,0,0,LOCATION_HAND,0,POS_FACEDOWN)
local m12=Debug.AddCard(29401950,1,1,LOCATION_SZONE,2,POS_FACEDOWN)

Debug.AddCard(27288416,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
Debug.ReloadFieldEnd()
aux.BeginPuzzle()


Debug.ShowHint("一速卡：永续魔法 通常魔法 场地魔法 装备魔法")
Debug.ShowHint("二速卡：通常陷阱 永续陷阱 速攻魔法")
Debug.ShowHint("三速卡：反击陷阱")

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)