Commit c5cb71d7 authored by DailyShana's avatar DailyShana

remove setcode 0x101

parent 4140688d
...@@ -31,6 +31,7 @@ function c14017402.initial_effect(c) ...@@ -31,6 +31,7 @@ function c14017402.initial_effect(c)
e4:SetValue(c14017402.splimit) e4:SetValue(c14017402.splimit)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c14017402.miracle_synchro_fusion=true
function c14017402.splimit(e,se,sp,st) function c14017402.splimit(e,se,sp,st)
if e:GetHandler():IsLocation(LOCATION_EXTRA) then if e:GetHandler():IsLocation(LOCATION_EXTRA) then
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
...@@ -57,7 +58,7 @@ function c14017402.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +58,7 @@ function c14017402.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToEffect(e) then if c:IsRelateToEffect(e) and c:IsFaceup() and tc:IsRelateToEffect(e) then
if Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=1 then return end if Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=1 then return end
local code=tc:GetOriginalCode() local code=tc:GetOriginalCode()
local reset_flag=RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END local reset_flag=RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END
c:CopyEffect(code, reset_flag, 1) c:CopyEffect(code, reset_flag, 1)
......
...@@ -21,6 +21,7 @@ function c17412721.initial_effect(c) ...@@ -21,6 +21,7 @@ function c17412721.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
e1:SetLabelObject(e2) e1:SetLabelObject(e2)
end end
c17412721.miracle_synchro_fusion=true
function c17412721.ffilter(c) function c17412721.ffilter(c)
return c:IsType(TYPE_XYZ+TYPE_SYNCHRO) return c:IsType(TYPE_XYZ+TYPE_SYNCHRO)
end end
......
...@@ -52,6 +52,7 @@ function c21113684.initial_effect(c) ...@@ -52,6 +52,7 @@ function c21113684.initial_effect(c)
e6:SetValue(c21113684.splimit) e6:SetValue(c21113684.splimit)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
c21113684.miracle_synchro_fusion=true
function c21113684.splimit(e,se,sp,st) function c21113684.splimit(e,se,sp,st)
if e:GetHandler():IsLocation(LOCATION_EXTRA) then if e:GetHandler():IsLocation(LOCATION_EXTRA) then
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
......
...@@ -27,7 +27,7 @@ function c36484016.filter1(c,e) ...@@ -27,7 +27,7 @@ function c36484016.filter1(c,e)
return c:IsCanBeFusionMaterial() and c:IsAbleToRemove() and not c:IsImmuneToEffect(e) return c:IsCanBeFusionMaterial() and c:IsAbleToRemove() and not c:IsImmuneToEffect(e)
end end
function c36484016.filter2(c,e,tp,m,f,chkf) function c36484016.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x101) and (not f or f(c)) return c:IsType(TYPE_FUSION) and c.miracle_synchro_fusion and (not f or f(c))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and m:IsExists(c36484016.filter3,1,nil,c,m,chkf) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and m:IsExists(c36484016.filter3,1,nil,c,m,chkf)
end end
function c36484016.filter3(c,fusc,m,chkf) function c36484016.filter3(c,fusc,m,chkf)
......
...@@ -34,6 +34,7 @@ function c40101111.initial_effect(c) ...@@ -34,6 +34,7 @@ function c40101111.initial_effect(c)
e5:SetValue(c40101111.splimit) e5:SetValue(c40101111.splimit)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c40101111.miracle_synchro_fusion=true
function c40101111.splimit(e,se,sp,st) function c40101111.splimit(e,se,sp,st)
if e:GetHandler():IsLocation(LOCATION_EXTRA) then if e:GetHandler():IsLocation(LOCATION_EXTRA) then
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
......
...@@ -20,6 +20,7 @@ function c58601383.initial_effect(c) ...@@ -20,6 +20,7 @@ function c58601383.initial_effect(c)
e3:SetValue(c58601383.efilter2) e3:SetValue(c58601383.efilter2)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c58601383.miracle_synchro_fusion=true
function c58601383.ffilter(c) function c58601383.ffilter(c)
return c:IsType(TYPE_SYNCHRO) and not c:IsType(TYPE_EFFECT) return c:IsType(TYPE_SYNCHRO) and not c:IsType(TYPE_EFFECT)
end end
......
...@@ -41,6 +41,7 @@ function c59255742.initial_effect(c) ...@@ -41,6 +41,7 @@ function c59255742.initial_effect(c)
e4:SetOperation(c59255742.ctop) e4:SetOperation(c59255742.ctop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c59255742.miracle_synchro_fusion=true
function c59255742.ffilter(c) function c59255742.ffilter(c)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_WARRIOR) and c:IsType(TYPE_SYNCHRO) return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_WARRIOR) and c:IsType(TYPE_SYNCHRO)
end end
......
...@@ -17,6 +17,7 @@ function c90555947.initial_effect(c) ...@@ -17,6 +17,7 @@ function c90555947.initial_effect(c)
e1:SetOperation(c90555947.disop) e1:SetOperation(c90555947.disop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c90555947.miracle_synchro_fusion=true
function c90555947.ffilter(c) function c90555947.ffilter(c)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsType(TYPE_SYNCHRO) return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsType(TYPE_SYNCHRO)
end end
......
...@@ -17,6 +17,7 @@ function c99916754.initial_effect(c) ...@@ -17,6 +17,7 @@ function c99916754.initial_effect(c)
e2:SetOperation(c99916754.disop) e2:SetOperation(c99916754.disop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c99916754.miracle_synchro_fusion=true
function c99916754.discon(e,tp,eg,ep,ev,re,r,rp) function c99916754.discon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
and re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev)
......
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