Commit a654c75f authored by argon.sun's avatar argon.sun

fix

parent 05356fad
...@@ -4,7 +4,7 @@ function c11228035.initial_effect(c) ...@@ -4,7 +4,7 @@ function c11228035.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c11228035.target) e1:SetTarget(c11228035.target)
e1:SetOperation(c11228035.activate) e1:SetOperation(c11228035.activate)
......
...@@ -44,7 +44,7 @@ function c20951752.chop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c20951752.chop1(e,tp,eg,ep,ev,re,r,rp)
e:GetLabelObject():SetLabel(0) e:GetLabelObject():SetLabel(0)
end end
function c20951752.chop2(e,tp,eg,ep,ev,re,r,rp) function c20951752.chop2(e,tp,eg,ep,ev,re,r,rp)
if not re:IsActiveType(TYPE_COUNTER) then return end if rp~=tp or not re:IsActiveType(TYPE_COUNTER) then return end
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
end end
function c20951752.sumcon(e,tp,eg,ep,ev,re,r,rp) function c20951752.sumcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -15,7 +15,7 @@ function c3149764.cfilter(c) ...@@ -15,7 +15,7 @@ function c3149764.cfilter(c)
end end
function c3149764.condition(e,tp,eg,ep,ev,re,r,rp) function c3149764.condition(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
if not re:IsActiveType(TYPE_MONSTER) and not re:IsHasType(EFFECT_TYPE_ACTIVATE) then return false end if not re:IsHasType(EFFECT_TYPE_ACTIVATE) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg and tg:GetCount()==1 and c3149764.cfilter(tg:GetFirst()) and Duel.IsChainNegatable(ev) return tg and tg:GetCount()==1 and c3149764.cfilter(tg:GetFirst()) and Duel.IsChainNegatable(ev)
end end
......
...@@ -26,7 +26,7 @@ function c36733451.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,7 +26,7 @@ function c36733451.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local g=Duel.GetDecktopGroup(tp,1) local g=Duel.GetDecktopGroup(tp,1)
local tc=g:GetFirst() local tc=g:GetFirst()
return tc:IsAbleToRemove() return tc and tc:IsAbleToRemove()
end end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -62,13 +62,13 @@ function c9126351.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,13 +62,13 @@ function c9126351.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c9126351.excost(e,tp,eg,ep,ev,re,r,rp,chk) function c9126351.excost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHandAsCost,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.GetFlagEffect(tp,9126352)==0 and Duel.IsExistingMatchingCard(Card.IsAbleToHandAsCost,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHandAsCost,tp,LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHandAsCost,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_COST) Duel.SendtoHand(g,nil,REASON_COST)
Duel.RegisterFlagEffect(tp,9126352,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1)
end end
function c9126351.exop(e,tp,eg,ep,ev,re,r,rp) function c9126351.exop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,9126352)~=0 then return end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0)
...@@ -76,7 +76,6 @@ function c9126351.exop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,6 @@ function c9126351.exop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(c9126351.estg) e1:SetTarget(c9126351.estg)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,9126352,RESET_PHASE+PHASE_END,0,1)
end end
function c9126351.estg(e,c) function c9126351.estg(e,c)
return c:IsSetCard(0x12) and c:GetCode()~=9126351 return c:IsSetCard(0x12) and c:GetCode()~=9126351
......
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