游戏王残局简化版

X-LV-27.lua at [67eb797582]
Login

X-LV-27.lua at [67eb797582]

File single/X-LV-27.lua artifact ab84d6fcdb part of check-in 67eb797582


--[[message
卡数:10
规则:新大师
]]
--By OURYGO-YGO EZ manager
Debug.SetAIName("顽雨沉风")
Debug.ReloadFieldBegin(DUEL_ATTACK_FIRST_TURN+DUEL_SIMPLE_AI,4)
Debug.SetPlayerInfo(0,51100,0,0)
Debug.SetPlayerInfo(1,34600,0,0)
Debug.AddCard(36736723,0,0,LOCATION_DECK,0,POS_FACEDOWN)
Debug.AddCard(63977008,0,0,LOCATION_HAND,0,POS_FACEDOWN)
Debug.AddCard(53855409,0,0,LOCATION_HAND,0,POS_FACEDOWN)
local g02=Debug.AddCard(13582837,0,0,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
local g12=Debug.AddCard(27134689,1,1,LOCATION_MZONE,2,POS_FACEUP_ATTACK)
local m01=Debug.AddCard(26864586,0,0,LOCATION_SZONE,1,POS_FACEDOWN)
--~ Debug.AddCard(61844784,0,0,LOCATION_GRAVE,0,POS_FACEUP)
local m02=Debug.AddCard(403847,0,0,LOCATION_SZONE,2,POS_FACEUP)
local m03=Debug.AddCard(8529136,0,0,LOCATION_SZONE,3,POS_FACEDOWN)
local c1=Debug.AddCard(67616300,0,0,LOCATION_SZONE,5,POS_FACEUP)
Debug.PreAddCounter(c1,0x2a,1) local e1=Effect.CreateEffect(c1) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EFFECT_DESTROY_REPLACE) e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) 	if chk==0 then return bit.band(r,REASON_RULE)==0 		and e:GetHandler():GetCounter(0x2a)>0 end 	return true end) e1:SetOperation(function (e,tp,eg,ep,ev,re,r,rp,chk) 	e:GetHandler():RemoveCounter(tp,0x2a,1,REASON_EFFECT) end) e1:SetReset(RESET_EVENT+0x1fe0000) c1:RegisterEffect(e1)
Debug.AddCard(60800381,0,0,LOCATION_EXTRA,0,POS_FACEDOWN)Debug.AddCard(53855409,0,0,LOCATION_GRAVE,0,POS_FACEUP)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)