--[[message

卡数：9
规则：大师3
]]
Debug.SetAIName("「DMI2」Guardian Sphinx")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,3)

Debug.SetPlayerInfo(0,100,0,0)
Debug.SetPlayerInfo(1,7200,0,0)

Debug.AddCard(40659562,0,0,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
Debug.AddCard(69579761,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)

Debug.AddCard(85562745,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(14087893,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(42703248,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(14898066,0,0,LOCATION_HAND,0,POS_FACEDOWN)

Debug.AddCard(89631139,1,1,LOCATION_MZONE,1,POS_FACEUP_ATTACK)
Debug.AddCard(89631139,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
Debug.AddCard(89631139,1,1,LOCATION_MZONE,3,POS_FACEUP_ATTACK)
Debug.AddCard(84636823,1,1,LOCATION_MZONE,4,POS_FACEUP_ATTACK)
Debug.AddCard(89631139,1,1,LOCATION_MZONE,0,POS_FACEUP_ATTACK)


Debug.AddCard(29401950,1,1,LOCATION_SZONE,0,POS_FACEDOWN)
Debug.AddCard(29401950,1,1,LOCATION_SZONE,1,POS_FACEDOWN)
Debug.AddCard(27053506,0,0,LOCATION_SZONE,0,POS_FACEDOWN)

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)