Commit 358aa40a authored by wind2009's avatar wind2009

Fix

parent 26e67f7b
...@@ -41,7 +41,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.atkfilter(c,ac) function s.atkfilter(c,ac)
return c:IsFaceup() and c:IsRace(RACE_PLANT) and not c:IsCode(id) and c:GetBaseAttack()+ac:GetBaseAttack()>0 return c:IsFaceup() and c:IsRace(RACE_PLANT) and not c:IsCode(id) and not c==ac and c:GetBaseAttack()+ac:GetBaseAttack()>0
end end
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -47,10 +47,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,10 +47,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetLabel(code) e1:SetLabel(code)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
and Duel.IsExistingMatchingCard(s.smfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp,code) and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.smfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp,code)
and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,s.smfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp,code) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.smfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp,code)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end 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