Commit 306cfab1 authored by POLYMER's avatar POLYMER

fix

parent 90a56480
......@@ -5,7 +5,7 @@ function c10105679.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
e1:SetValue(aux.MaskChangeLimit)
c:RegisterEffect(e1)
--copy effect
local e2=Effect.CreateEffect(c)
......
......@@ -5,7 +5,7 @@ function c10105680.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.FALSE)
e1:SetValue(aux.MaskChangeLimit)
c:RegisterEffect(e1)
--disable
local e2=Effect.CreateEffect(c)
......
......@@ -37,7 +37,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e4)
end
function cm.setfilter(c)
return c:GetType()&0x100004==0x100004 and c:IsSSetable()
return c:GetType()&0x100004==0x100004 and c:IsSSetable(true)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasCategory(CATEGORY_SEARCH) or re:IsHasCategory(CATEGORY_TOHAND) or re:IsHasCategory(CATEGORY_DRAW)
......
......@@ -2844,8 +2844,7 @@ function cm.AllEffectRstop(e,tp,eg,ep,ev,re,r,rp)
if tc:GetFlagEffect(53702700)>0 then
local le={tc:IsHasEffect(53702701)}
for _,v in pairs(le) do v:GetLabelObject():Reset() v:Reset() end
return 0
else return tc:ReplaceEffect(m,0) end
else tc:ReplaceEffect(m,0) end
cm.initial_effect=ini
tc.initial_effect(tc)
end
......
......@@ -277,7 +277,7 @@ function s.retop(tc,ct)
Card.RegisterEffect=function(tc,te,bool)
s.tempreset={}
local event=te:GetCode()
if te:GetType()&EFFECT_TYPE_SINGLE~=0 and ((event==EVENT_TO_DECK and loc==LOCATION_DECK) or (event==EVENT_TO_HAND and loc==LOCATION_HAND) or event==EVENT_MOVE) then res=true end
if te:GetType()&EFFECT_TYPE_SINGLE~=0 and ((event==EVENT_TO_DECK and loc&0x41~=0) or (event==EVENT_TO_HAND and loc==LOCATION_HAND) or event==EVENT_MOVE) then res=true end
return s.func1(tc,te,bool)
end
Duel.CreateToken(tp,tc:GetOriginalCode())
......@@ -293,7 +293,7 @@ function s.retop(tc,ct)
e1:SetCode(id+750)
e1:SetLabelObject(te)
s.func1(tc,e1,true)
if te:GetType()&EFFECT_TYPE_SINGLE~=0 and ((event==EVENT_TO_DECK and loc==LOCATION_DECK) or (event==EVENT_TO_HAND and loc==LOCATION_HAND) or event==EVENT_MOVE) then table.insert(evt,te) end
if te:GetType()&EFFECT_TYPE_SINGLE~=0 and ((event==EVENT_TO_DECK and loc&0x41~=0) or (event==EVENT_TO_HAND and loc==LOCATION_HAND) or event==EVENT_MOVE) then table.insert(evt,te) end
return s.func1(tc,te,bool)
end
if tc.initial_effect then
......
......@@ -52,7 +52,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_EXTRA,0,1,nil)
end
function s.spfilter(c,e,tp,tc)
return c:IsFaceup() and (aux.IsCodeListed(c,53796195) or c:IsType(0x40)) and c:IsCanBeXyzMaterial(tc) and Duel.GetLocationCountFromEx(tp,tp,c,tc)>0 and tc:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsFaceup() and (aux.IsCodeListed(c,53796195) or c:IsType(TYPE_XYZ)) and c:IsCanBeXyzMaterial(tc) and Duel.GetLocationCountFromEx(tp,tp,c,tc)>0 and tc:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function s.spfilter2(c,e,tp,tc)
return s.spfilter(c,e,tp,tc) and not c:IsImmuneToEffect(e)
......
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