Commit c9541575 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Predaplant Triphyoverutum (#1794)

parent 36495298
...@@ -53,12 +53,14 @@ function c79864860.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,12 +53,14 @@ function c79864860.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c79864860.target(e,tp,eg,ep,ev,re,r,rp,chk) function c79864860.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE_SUMMON,eg,eg:GetCount(),0,0) local g=eg:Filter(c79864860.cfilter,nil,1-tp)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,eg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE_SUMMON,g,g:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end end
function c79864860.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c79864860.operation(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.NegateSummon(eg) local g=eg:Filter(c79864860.cfilter,nil,1-tp)
Duel.Destroy(eg,REASON_EFFECT) Duel.NegateSummon(g)
Duel.Destroy(g,REASON_EFFECT)
end end
function c79864860.spfilter(c) function c79864860.spfilter(c)
return c:IsFaceup() and c:GetCounter(0x1041)>0 return c:IsFaceup() and c:GetCounter(0x1041)>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