Commit 24d47f97 authored by POLYMER's avatar POLYMER

fix

parent 6dbf9046
...@@ -58,7 +58,7 @@ function c10202929.tdfilter(c) ...@@ -58,7 +58,7 @@ function c10202929.tdfilter(c)
end end
function c10202929.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c10202929.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and c10202929.tdfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and c10202929.tdfilter(chkc) end
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) if chk==0 then return Duel.IsPlayerCanDraw(tp,1)
and Duel.IsExistingTarget(c10202929.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,3,nil) end and Duel.IsExistingTarget(c10202929.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,3,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,c10202929.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,3,3,nil) local g=Duel.SelectTarget(tp,c10202929.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,3,3,nil)
...@@ -74,6 +74,6 @@ function c10202929.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,6 +74,6 @@ function c10202929.drop(e,tp,eg,ep,ev,re,r,rp)
local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA) local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)
if ct>0 then if ct>0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(tp,2,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -30,12 +30,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,12 +30,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(cm.aclimit) e1:SetValue(cm.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e1=Effect.CreateEffect(e:GetHandler()) local e2=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_ADJUST) e2:SetCode(EVENT_ADJUST)
e1:SetOperation(cm.op) e2:SetOperation(cm.op)
e1:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e2,tp)
end end
function cm.aclimit(e,re,tp) function cm.aclimit(e,re,tp)
return re:GetCode()==1100 or re:GetCode()==1101 or re:GetCode()==1102 return re:GetCode()==1100 or re:GetCode()==1101 or re:GetCode()==1102
......
...@@ -51,7 +51,7 @@ function c98920369.cfilter1(c,tp) ...@@ -51,7 +51,7 @@ function c98920369.cfilter1(c,tp)
end end
function c98920369.spcost1(e,tp,eg,ep,ev,re,r,rp,chk) function c98920369.spcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c98920369.cfilter1,1,nil,REASON_COST,true,tp) end if chk==0 then return Duel.CheckReleaseGroupEx(tp,c98920369.cfilter1,1,nil,REASON_COST,true,tp) end
local g=Duel.SelectReleaseGroupEx(tp,c98920369.cfilter1,1,1,nil,tp) local g=Duel.SelectReleaseGroupEx(tp,c98920369.cfilter1,1,1,REASON_COST,true,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c98920369.filter(c,e,tp) function c98920369.filter(c,e,tp)
......
...@@ -117,7 +117,7 @@ function c98920602.sprcon(e,c) ...@@ -117,7 +117,7 @@ function c98920602.sprcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local mg=Duel.GetMatchingGroup(c98920602.spcfilter,tp,LOCATION_ONFIELD,0,nil) local mg=Duel.GetMatchingGroup(c98920602.spcfilter,tp,LOCATION_ONFIELD,0,nil)
return mg:CheckSubGroup(aux.mzctcheck,3,3,tp) return mg:CheckSubGroup(aux.mzctcheck,3,3,tp) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
function c98920602.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c) function c98920602.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local mg=Duel.GetMatchingGroup(c98920602.spcfilter,tp,LOCATION_ONFIELD,0,nil) local mg=Duel.GetMatchingGroup(c98920602.spcfilter,tp,LOCATION_ONFIELD,0,nil)
......
...@@ -18,8 +18,8 @@ function c98920673.cfilter(c,tp) ...@@ -18,8 +18,8 @@ function c98920673.cfilter(c,tp)
return c:IsAttribute(ATTRIBUTE_DARK) return c:IsAttribute(ATTRIBUTE_DARK)
end end
function c98920673.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c98920673.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,c98920673.cfilter,2,nil) end if chk==0 then return Duel.CheckReleaseGroupEx(tp,c98920673.cfilter,2,REASON_COST,true,nil,tp) end
local g=Duel.SelectReleaseGroupEx(tp,c98920673.cfilter,2,2,nil) local g=Duel.SelectReleaseGroupEx(tp,c98920673.cfilter,2,2,REASON_COST,true,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c98920673.setfilter(c) function c98920673.setfilter(c)
......
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