Commit f69098b4 authored by VanillaSalt's avatar VanillaSalt

fix

parent 2d9c45be
...@@ -70,5 +70,5 @@ function c24573625.atkcon2(e) ...@@ -70,5 +70,5 @@ function c24573625.atkcon2(e)
return e:GetHandler():IsDirectAttacked() return e:GetHandler():IsDirectAttacked()
end end
function c24573625.tglimit(e,re,c) function c24573625.tglimit(e,re,c)
return c:IsLocation(LOCATION_MZONE) and c~=e:GetHandler() and c:IsSetCard(0xab) return c:IsFaceup() and c:IsSetCard(0x2b) and c~=e:GetHandler()
end end
...@@ -32,7 +32,7 @@ function c41128647.aclimit(e,re,tp) ...@@ -32,7 +32,7 @@ function c41128647.aclimit(e,re,tp)
return not re:GetHandler():IsImmuneToEffect(e) return not re:GetHandler():IsImmuneToEffect(e)
end end
function c41128647.cfilter(c,tp) function c41128647.cfilter(c,tp)
return c:IsSetCard(0xd8) and c:IsControler(tp) return c:IsFaceup() and c:IsSetCard(0xd8) and c:IsControler(tp)
end end
function c41128647.actcon(e) function c41128647.actcon(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
......
...@@ -16,8 +16,8 @@ function c41767843.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,8 +16,8 @@ function c41767843.condition(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
if not d then return false end if not d then return false end
if a:IsControler(1-tp) then a=d end if a:IsControler(1-tp) then a,d=d,a end
return a:IsSetCard(0x9b) and a:IsRelateToBattle() return a:IsSetCard(0x9b) and a:IsRelateToBattle() and (d:GetAttack()>0 or d:GetDefence()>0)
end end
function c41767843.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c41767843.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
...@@ -7,36 +7,33 @@ function c53724621.initial_effect(c) ...@@ -7,36 +7,33 @@ function c53724621.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1) c:RegisterEffect(e1)
-- --draw
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DRAW) e2:SetCategory(CATEGORY_DRAW)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_CHAINING) e2:SetCode(EVENT_CHAIN_SOLVING)
e2:SetRange(LOCATION_PZONE) e2:SetRange(LOCATION_PZONE)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,53724621) e2:SetCountLimit(1,53724621)
e2:SetCondition(c53724621.drcon) e2:SetCondition(c53724621.drcon)
e2:SetTarget(c53724621.drtg) e2:SetTarget(c53724621.drtg)
e2:SetOperation(c53724621.drop) e2:SetOperation(c53724621.drop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
-- --scale
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
e3:SetCountLimit(1) e3:SetCountLimit(1)
e3:SetTarget(c53724621.target) e3:SetTarget(c53724621.target)
e3:SetOperation(c53724621.activate) e3:SetOperation(c53724621.operation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c53724621.drcon(e,tp,eg,ep,ev,re,r,rp) function c53724621.drcon(e,tp,eg,ep,ev,re,r,rp)
return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_PENDULUM) return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_PENDULUM) and re:GetHandler():IsSetCard(0x9f)
end end
function c53724621.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c53724621.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then Duel.IsPlayerCanDraw(tp,1) end
local seq=e:GetHandler():GetSequence()
local tc=Duel.GetFieldCard(tp,LOCATION_SZONE,13-seq)
return Duel.IsPlayerCanDraw(tp,1) and tc and tc:IsSetCard(0x9f)
end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end end
function c53724621.drop(e,tp,eg,ep,ev,re,r,rp) function c53724621.drop(e,tp,eg,ep,ev,re,r,rp)
...@@ -52,7 +49,7 @@ function c53724621.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -52,7 +49,7 @@ function c53724621.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c53724621.filter,tp,LOCATION_SZONE,0,1,1,nil) Duel.SelectTarget(tp,c53724621.filter,tp,LOCATION_SZONE,0,1,1,nil)
end end
function c53724621.activate(e,tp,eg,ep,ev,re,r,rp) function c53724621.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
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