Commit fcad9130 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent b1ab032a
Pipeline #399 passed with stages
in 47 minutes and 32 seconds
No preview for this file type
......@@ -41,23 +41,27 @@ if c:IsSetCard(0x5349) and c:IsType(TYPE_TRAP) then
end
if not XY.zs then
XY.zs=true
local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ge1:SetProperty(EFFECT_FLAG_DELAY)
local ge1=Effect.GlobalEffect(c)
ge1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
ge1:SetCode(EVENT_SPSUMMON_SUCCESS)
ge1:SetCondition(XY.zscon1)
ge1:SetOperation(XY.zsop1)
Duel.RegisterEffect(ge1,0)
end
end
function XY.zsfilter1(c,tp,re)
return c:GetSummonPlayer()==tp and not c:IsCode(33403500) and (re and not re:GetHandler(0x5349))
function XY.zsfilter1(c,rp)
return Duel.GetFlagEffect(rp,33443500)==0
end
function XY.zsckfilter1(c,rp,re)
return c:GetSummonPlayer()==rp and not c:IsCode(33403500) and (re and not re:GetHandler():IsSetCard(0x5349))
end
function XY.zscon1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(XY.zsfilter1,1,nil,tp,re)
return eg:IsExists(XY.zsfilter1,1,nil,rp)
end
function XY.zsop1(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,33443500)
if eg:IsExists(XY.zsckfilter1,1,nil,rp,re) then
Duel.RegisterFlagEffect(rp,33443500,RESET_PHASE+PHASE_END,0,1)
end
end
function XY.handcon(e)
......
......@@ -151,7 +151,7 @@ end
function c33400035.matg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(c33400035.cfilter1,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectTarget(tp,c33400035.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectTarget(tp,c33400035.cfilter1,tp,LOCATION_GRAVE,0,1,1,nil)
end
function c33400035.maop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
......
......@@ -112,7 +112,7 @@ function c65073002.remop(e,tp,eg,ep,ev,re,r,rp)
local sg=Group.CreateGroup()
local g1=Duel.GetMatchingGroup(c65073002.spfilter1,tp,LOCATION_DECK,0,nil,e,tp,num,tc:GetAttribute(),lv)
local g2=Duel.GetMatchingGroup(c65073002.spfilter2,tp,LOCATION_DECK,0,nil,e,tp,num,tc:GetRace(),lv)
while lv<num and count<ft and ((op==0 and g1:GetCount()>0) or (op==1 and g2:GetCount())>0) do
while lv<num and count<ft and ((op==0 and g1:GetCount()>0) or (op==1 and g2:GetCount()>0)) do
if op==0 then
local g=g1:FilterSelect(tp,aux.TRUE,1,1,nil)
lv=lv+g:GetFirst():GetLevel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment