Commit 89e7a856 authored by VanillaSalt's avatar VanillaSalt

fix

parent 8dd871b3
......@@ -54,15 +54,15 @@ function c29726552.spcon2(e,c)
and Duel.IsExistingMatchingCard(c29726552.cfilter,tp,0,LOCATION_MZONE,1,nil)
end
function c29726552.filter(c,tp)
return c:IsFaceup() and c:IsControler(1-tp)
return c:IsFaceup() and c:GetSummonPlayer()==tp
end
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
Duel.RemoveCounter(tp,1,1,0x37,2,REASON_COST)
end
function c29726552.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c29726552.filter,1,nil,tp) end
local g=eg:Filter(c29726552.filter,nil,tp)
if chk==0 then return eg:IsExists(c29726552.filter,1,nil,1-tp) end
local g=eg:Filter(c29726552.filter,nil,1-tp)
Duel.SetTargetCard(g)
end
function c29726552.operation(e,tp,eg,ep,ev,re,r,rp)
......@@ -83,7 +83,6 @@ function c29726552.operation(e,tp,eg,ep,ev,re,r,rp)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_DISABLE_EFFECT)
e3:SetValue(RESET_TURN_SET)
e3:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,2)
tc:RegisterEffect(e3)
tc=g:GetNext()
......
......@@ -33,13 +33,13 @@ function c56111151.initial_effect(c)
e4:SetOperation(c56111151.desrepop)
c:RegisterEffect(e4)
end
function c56111151.cfilter(c,tp)
function c56111151.cfilter(c)
return c:IsPreviousLocation(LOCATION_ONFIELD)
end
function c56111151.counter(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(c56111151.cfilter,nil,tp)
local ct=eg:FilterCount(c56111151.cfilter,nil)
if ct>0 then
e:GetHandler():AddCounter(0x37,1)
e:GetHandler():AddCounter(0x37,ct)
end
end
function c56111151.thfilter(c)
......@@ -63,7 +63,7 @@ function c56111151.thop(e,tp,eg,ep,ev,re,r,rp)
end
function c56111151.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsReason(REASON_RULE)
and e:GetHandler():GetCounter(0x37)>0 end
and e:GetHandler():IsCanRemoveCounter(tp,0x37,1,REASON_EFFECT) end
return Duel.SelectYesNo(tp,aux.Stringid(56111151,0))
end
function c56111151.desrepop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -49,7 +49,7 @@ function c67050396.poscost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,500)
end
function c67050396.posfilter(c)
return c:IsPosition(POS_FACEUP) and c:IsCanTurnSet()
return c:IsFaceup() and c:IsCanTurnSet()
end
function c67050396.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c67050396.posfilter(chkc) end
......
......@@ -56,7 +56,7 @@ function c93332803.descost(e,tp,eg,ep,ev,re,r,rp,chk)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+RESET_END)
e:GetHandler():RegisterEffect(e1)
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