Commit 90c50398 authored by mercury233's avatar mercury233

fix

parent e01168c5
...@@ -31,10 +31,10 @@ function c100270202.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,10 +31,10 @@ function c100270202.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function c100270202.cfilter(c,tp) function c100270202.cfilter(c,tp)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c100270202.tgfilter,tp,LOCATION_EXTRA,0,1,nil,c:GetOriginalAttribute()) return c:IsFaceup() and Duel.IsExistingMatchingCard(c100270202.tgfilter,tp,LOCATION_EXTRA,0,1,nil,c:GetAttribute())
end end
function c100270202.tgfilter(c,att) function c100270202.tgfilter(c,att)
return c:IsAbleToGrave() and c:GetOriginalAttribute()==att and c:IsSetCard(0x9d) return c:IsAbleToGrave() and c:GetAttribute()==att and c:IsSetCard(0x9d)
end end
function c100270202.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c100270202.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c100270202.cfilter(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c100270202.cfilter(chkc,tp) end
......
...@@ -58,7 +58,7 @@ function c100270218.actop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c100270218.actop(e,tp,eg,ep,ev,re,r,rp)
end end
function c100270218.atkcon(e,tp,eg,ep,ev,re,r,rp) function c100270218.atkcon(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetBattleMonster(tp) local tc=Duel.GetBattleMonster(tp)
return tc:IsRace(RACE_PLANT) and tc:IsType(TYPE_LINK) return tc and tc:IsRace(RACE_PLANT) and tc:IsType(TYPE_LINK)
end end
function c100270218.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c100270218.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetBattleMonster(tp) local tc=Duel.GetBattleMonster(tp)
......
...@@ -67,6 +67,6 @@ function c101102086.sp2op(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,6 +67,6 @@ function c101102086.sp2op(e,tp,eg,ep,ev,re,r,rp)
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tc=Duel.SelectMatchingCard(tp,c101102086.sp2costfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp) local tc=Duel.SelectMatchingCard(tp,c101102086.sp2tgfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end
end end
\ No newline at end of file
...@@ -47,7 +47,7 @@ function c101102090.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c101102090.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c101102090.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c101102090.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return g:GetCount()>0 end if chk==0 then return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTORY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTORY)
local g=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
......
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