Commit 762e05af authored by POLYMER's avatar POLYMER

fix

parent f2eab225
...@@ -81,8 +81,8 @@ function c10111122.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,8 +81,8 @@ function c10111122.ctop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
tc=g:GetNext() tc=g:GetNext()
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT)
end end
Duel.Draw(tp,1,REASON_EFFECT)
end end
function c10111122.eftg(e,c) function c10111122.eftg(e,c)
return c:IsType(TYPE_EFFECT) and c:IsSetCard(0x11a) return c:IsType(TYPE_EFFECT) and c:IsSetCard(0x11a)
......
...@@ -21,7 +21,7 @@ local e1=Effect.CreateEffect(c) ...@@ -21,7 +21,7 @@ local e1=Effect.CreateEffect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_XMATERIAL+EFFECT_TYPE_QUICK_O) e3:SetType(EFFECT_TYPE_XMATERIAL+EFFECT_TYPE_QUICK_O)
e3:SetCountLimit(1,m) e3:SetCountLimit(1,m+1000)
e3:SetCode(EVENT_FREE_CHAIN) e3:SetCode(EVENT_FREE_CHAIN)
e3:SetCost(cm.cost2) e3:SetCost(cm.cost2)
e3:SetTarget(cm.tg2) e3:SetTarget(cm.tg2)
...@@ -65,7 +65,7 @@ end ...@@ -65,7 +65,7 @@ end
function cm.drop(e,tp,eg,ep,ev,re,r,rp) function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_MZONE,0,1,c,TYPE_XYZ) then if Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_MZONE,0,1,c,TYPE_XYZ) then
local aa=Duel.SelectMatchingCard(tp,Card.IsType,tp,LOCATION_MZONE,0,1,1,c,TYPE_XYZ) local aa=Duel.SelectMatchingCard(tp,Card.IsType,tp,LOCATION_MZONE,0,1,1,c,TYPE_XYZ):GetFirst()
Duel.Overlay(aa,c) Duel.Overlay(aa,c)
end end
end end
......
--玉桂·花信 --玉桂·花信
function c16372008.initial_effect(c) function c16372008.initial_effect(c)
--special summon/set --can not diseffect
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
...@@ -60,7 +60,7 @@ function c16372008.con(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +60,7 @@ function c16372008.con(e,tp,eg,ep,ev,re,r,rp)
end end
function c16372008.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c16372008.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() if chk==0 then return c:IsAbleToRemoveAsCost()
and Duel.GetCustomActivityCount(16372008,tp,ACTIVITY_SPSUMMON)==0 end and Duel.GetCustomActivityCount(16372008,tp,ACTIVITY_SPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
...@@ -70,7 +70,7 @@ function c16372008.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,7 +70,7 @@ function c16372008.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetTarget(c16372008.splimitoath) e1:SetTarget(c16372008.splimitoath)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.SendtoGrave(c,REASON_COST) Duel.Remove(c,POS_FACEUP,REASON_COST)
end end
function c16372008.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c16372008.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,16372008)==0 end if chk==0 then return Duel.GetFlagEffect(tp,16372008)==0 end
......
...@@ -157,7 +157,7 @@ function c16372013.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -157,7 +157,7 @@ function c16372013.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetChainLimit(c16372013.chainlm) Duel.SetChainLimit(c16372013.chainlm)
end end
function c16372013.chainlm(re,rp,tp) function c16372013.chainlm(re,rp,tp)
return tp==rp or not re:GetHandler():IsType(TYPE_MONSTER) or re:GetHandler():IsRace(RACE_PLANT) return tp==rp or re:GetHandler():IsRace(RACE_PLANT)
end end
function c16372013.op(e,tp,eg,ep,ev,re,r,rp) function c16372013.op(e,tp,eg,ep,ev,re,r,rp)
local dc=e:GetLabelObject() local dc=e:GetLabelObject()
......
...@@ -71,7 +71,7 @@ function c16372018.cfilter(c,tp) ...@@ -71,7 +71,7 @@ function c16372018.cfilter(c,tp)
end end
function c16372018.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c16372018.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16372018.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c16372018.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,nil,tp) end
local g=Duel.SelectMatchingCard(tp,c16372018.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c16372018.cfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,nil,tp)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
e:SetLabel(g:GetFirst():GetCode()) e:SetLabel(g:GetFirst():GetCode())
end end
......
...@@ -128,6 +128,7 @@ function s.spcop(e,tp,eg,ep,ev,re,r,rp) ...@@ -128,6 +128,7 @@ function s.spcop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g:Select(tp,1,1,nil),0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g:Select(tp,1,1,nil),0,tp,tp,false,false,POS_FACEUP)
end end
e:Reset()
end end
function s.ovop(e,tp,eg,ep,ev,re,r,rp) function s.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -44,7 +44,9 @@ end ...@@ -44,7 +44,9 @@ end
function s.operation(e,tp,eg,ep,ev,re,r,rp) function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local count=eg:Filter(Card.IsType,nil,TYPE_MONSTER):GetCount() local count=eg:Filter(Card.IsType,nil,TYPE_MONSTER):GetCount()
c:AddCounter(0x1,count) if count>0 then
c:AddCounter(0x1,count)
end
end end
function s.tgcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x1,13,REASON_COST) end if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x1,13,REASON_COST) end
......
...@@ -29,8 +29,12 @@ function s.mofilter(c) ...@@ -29,8 +29,12 @@ function s.mofilter(c)
end end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.mofilter,tp,LOCATION_ONFIELD,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.mofilter,tp,LOCATION_ONFIELD,0,1,nil) end
local mc=Duel.SelectMatchingCard(tp,s.mofilter,tp,LOCATION_ONFIELD,0,1,nil) local mc=Duel.SelectMatchingCard(tp,s.mofilter,tp,LOCATION_ONFIELD,0,1,1,nil):GetFirst()
Duel.MoveToField(mc,tp,tp,LOCATION_FZONE,POS_FACEUP,true) if mc:IsLocation(LOCATION_SZONE) then
Duel.MoveSequence(mc,5)
else
Duel.MoveToField(mc,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
end
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,0,1,nil) end
......
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