Commit 1121bb28 authored by POLYMER's avatar POLYMER

fix

parent 70c2d173
...@@ -98,29 +98,8 @@ ...@@ -98,29 +98,8 @@
92501191 0 92501191 0
62501196 0 62501196 0
62501201 0 62501201 0
17338780 0
17338790 0
17338800 0
17338810 0
17338820 0
17338830 0
17338840 0
17338850 0
17338860 0
17338870 0
17338880 0
17338890 0
17338900 0
17338930 0
17338940 0
17338950 0 17338950 0
17338960 0 17338960 0
17338970 0
17338980 0
17338990 0
17339000 0
17339010 0
17339040 0
16300000 0 16300000 0
16300005 0 16300005 0
16310005 0 16310005 0
......
...@@ -30,19 +30,20 @@ end ...@@ -30,19 +30,20 @@ end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp return rp==1-tp
end end
function s.cfilter(c,rc) function s.cfilter(c,re)
return c:IsSetCard(0x6a70) and (c:IsType(TYPE_SYNCHRO) or rc:IsAbleToRemove() and c:IsType(TYPE_LINK)) and c:IsAbleToRemoveAsCost() local rc=re:GetHandler()
return c:IsSetCard(0x6a70) and (c:IsType(TYPE_SYNCHRO) or rc:IsAbleToRemove() and rc:IsRelateToEffect(re) and c:IsType(TYPE_LINK)) and c:IsAbleToExtraAsCost() and c:IsFaceupEx()
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.cfilter,tp,LOCATION_GRAVE,0,1,nil,re:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,re) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE,0,1,2,nil,re:GetHandler()) local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,2,nil,re)
g:KeepAlive() g:KeepAlive()
e:SetLabelObject(g) e:SetLabelObject(g)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.SendtoDeck(g,nil,2,REASON_COST)
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 true end if chk==0 then return e:IsCostChecked() end
local g=e:GetLabelObject() local g=e:GetLabelObject()
if g:IsExists(Card.IsType,1,nil,TYPE_SYNCHRO) then if g:IsExists(Card.IsType,1,nil,TYPE_SYNCHRO) then
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
......
...@@ -87,7 +87,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,6 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
--copy effect --copy effect
local e9=Effect.CreateEffect(c) local e9=Effect.CreateEffect(c)
e9:SetDescription(aux.Stringid(id,1)) e9:SetDescription(aux.Stringid(id,1))
e9:SetCategory(CATEGORY_SPECIAL_SUMMON)
e9:SetType(EFFECT_TYPE_QUICK_O) e9:SetType(EFFECT_TYPE_QUICK_O)
e9:SetHintTiming(TIMING_MAIN_END,TIMING_MAIN_END) e9:SetHintTiming(TIMING_MAIN_END,TIMING_MAIN_END)
e9:SetCode(EVENT_FREE_CHAIN) e9:SetCode(EVENT_FREE_CHAIN)
......
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