Commit cd412cd1 authored by Grajade's avatar Grajade

Update c21066.lua

parent 53d9676f
......@@ -33,12 +33,13 @@ function c21066.initial_effect(c)
c:RegisterEffect(e2)
end
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
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
Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_POSITION,eg,eg:GetCount(),0,0)
local g=eg:Filter(c21066.filter,nil,nil,tp)
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,g:GetCount(),0,0)
end
function c21066.operation(e,tp,eg,ep,ev,re,r,rp)
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