Commit d8bc74c8 authored by salix5's avatar salix5

fix

parent 7cdb5fac
...@@ -54,14 +54,14 @@ function c29726552.spcon2(e,c) ...@@ -54,14 +54,14 @@ function c29726552.spcon2(e,c)
and Duel.IsExistingMatchingCard(c29726552.cfilter,tp,0,LOCATION_MZONE,1,nil) and Duel.IsExistingMatchingCard(c29726552.cfilter,tp,0,LOCATION_MZONE,1,nil)
end end
function c29726552.filter(c,tp) function c29726552.filter(c,tp)
return c:IsFaceup() and c:GetSummonPlayer()==tp return c:GetSummonPlayer()==tp
end end
function c29726552.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c29726552.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,1,0x37,2,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,1,0x37,2,REASON_COST) end
Duel.RemoveCounter(tp,1,1,0x37,2,REASON_COST) Duel.RemoveCounter(tp,1,1,0x37,2,REASON_COST)
end end
function c29726552.target(e,tp,eg,ep,ev,re,r,rp,chk) function c29726552.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c29726552.filter,1,nil,1-tp) end if chk==0 then return eg:IsExists(c29726552.filter,1,nil,1-tp) and not eg:IsContains(e:GetHandler()) end
local g=eg:Filter(c29726552.filter,nil,1-tp) local g=eg:Filter(c29726552.filter,nil,1-tp)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
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