Commit f8a9c8b3 authored by VanillaSalt's avatar VanillaSalt

fix

parent 5340522a
...@@ -54,12 +54,14 @@ function c26420373.scop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,12 +54,14 @@ function c26420373.scop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
local ct=e:GetLabel() local ct=e:GetLabel()
local sel=Duel.SelectOption(tp,aux.Stringid(26420373,1),aux.Stringid(26420373,2)) local sel=0
if c:GetLeftScale()==1 then
sel=Duel.SelectOption(tp,aux.Stringid(26420373,1))
else
sel=Duel.SelectOption(tp,aux.Stringid(26420373,1),aux.Stringid(26420373,2))
end
if sel==1 then if sel==1 then
if c:GetLeftScale()-ct>0 then ct=-math.min(ct,c:GetLeftScale()-1)
ct=c:GetLeftScale()-1
end
ct=ct*-1
end end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -9,17 +9,17 @@ function c59432181.initial_effect(c) ...@@ -9,17 +9,17 @@ function c59432181.initial_effect(c)
e1:SetOperation(c59432181.activate) e1:SetOperation(c59432181.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c59432181.filter(c) function c59432181.filter(c,tp)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c59432181.cfilter,tp,LOCATION_EXTRA,0,1,nil,c) return c:IsFaceup() and Duel.IsExistingMatchingCard(c59432181.cfilter,tp,LOCATION_EXTRA,0,1,nil,c)
end end
function c59432181.cfilter(c,tc) function c59432181.cfilter(c,tc)
return c:IsType(TYPE_FUSION) and not c:IsCode(tc:GetFusionCode()) return c:IsType(TYPE_FUSION) and not c:IsCode(tc:GetFusionCode())
end end
function c59432181.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c59432181.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c59432181.filter(chkc,tp) end
if chk==0 then return Duel.IsExistingTarget(c59432181.filter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c59432181.filter,tp,LOCATION_MZONE,0,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c59432181.filter,tp,LOCATION_MZONE,0,1,1,nil,tp)
end end
function c59432181.activate(e,tp,eg,ep,ev,re,r,rp) function c59432181.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
...@@ -45,7 +45,8 @@ function c86157908.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,8 @@ function c86157908.atkop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
local at=Duel.GetAttacker() local at=Duel.GetAttacker()
if at:IsFaceup() and at:IsRelateToBattle() and tc:IsFaceup() and tc:IsRelateToEffect(e) then if at:IsFaceup() and at:IsRelateToBattle() and at:IsAttackable() and not at:IsStatus(STATUS_ATTACK_CANCELED)
and tc:IsFaceup() and tc:IsRelateToEffect(e) then
local atk=tc:GetBaseAttack() local atk=tc:GetBaseAttack()
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -21,6 +21,7 @@ function c88935103.initial_effect(c) ...@@ -21,6 +21,7 @@ function c88935103.initial_effect(c)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_SINGLE) e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_LEAVE_FIELD_REDIRECT) e4:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e4:SetValue(LOCATION_DECKBOT) e4:SetValue(LOCATION_DECKBOT)
e4:SetCondition(c88935103.rdcon) e4:SetCondition(c88935103.rdcon)
c:RegisterEffect(e4) c:RegisterEffect(e4)
......
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