Commit cd412cd1 authored by Grajade's avatar Grajade

Update c21066.lua

parent 53d9676f
Pipeline #8770 passed with stage
in 31 seconds
...@@ -33,12 +33,13 @@ function c21066.initial_effect(c) ...@@ -33,12 +33,13 @@ function c21066.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c21066.filter(c,e,tp) function c21066.filter(c,e,tp)
return c:IsFaceup() and c:IsControler(1-tp) and (not e or c:IsRelateToEffect(e)) return c:IsFaceup() and c:IsSummonPlayer(1-tp) and c:IsCanTurnSet() and (not e or c:IsRelateToEffect(e))
end end
function c21066.target(e,tp,eg,ep,ev,re,r,rp,chk) function c21066.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c21066.filter,1,nil,nil,tp) end if chk==0 then return eg:IsExists(c21066.filter,1,nil,nil,tp) end
Duel.SetTargetCard(eg) local g=eg:Filter(c21066.filter,nil,nil,tp)
Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,eg:GetCount(),0,0) Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,g:GetCount(),0,0)
end end
function c21066.operation(e,tp,eg,ep,ev,re,r,rp) function c21066.operation(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c21066.filter,nil,e,tp) local g=eg:Filter(c21066.filter,nil,e,tp)
......
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