Commit 39712bd0 authored by tsubaki's avatar tsubaki

fix3

parent a241fead
Pipeline #40310 passed with stage
in 35 seconds
...@@ -6,6 +6,7 @@ function c24047.initial_effect(c) ...@@ -6,6 +6,7 @@ function c24047.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_STANDBY_PHASE) e1:SetHintTiming(0,TIMING_STANDBY_PHASE)
e1:SetCondition(c24047.acon)
e1:SetTarget(c24047.atg) e1:SetTarget(c24047.atg)
e1:SetOperation(c24047.activate) e1:SetOperation(c24047.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -21,11 +22,14 @@ function c24047.initial_effect(c) ...@@ -21,11 +22,14 @@ function c24047.initial_effect(c)
e2:SetOperation(c24047.operation) e2:SetOperation(c24047.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c24047.acon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c24047.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil)
end
function c24047.cfilter(c) function c24047.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x262) return c:IsFaceup() and c:IsSetCard(0x262)
end end
function c24047.atg(e,tp,eg,ep,ev,re,r,rp,chk) function c24047.atg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c24047.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,400) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,400)
end end
function c24047.activate(e,tp,eg,ep,ev,re,r,rp) function c24047.activate(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -64,7 +64,7 @@ function c34053.acost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,7 +64,7 @@ function c34053.acost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c34053.cfilter,tp,LOCATION_SZONE+LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c34053.cfilter,tp,LOCATION_SZONE+LOCATION_HAND,0,1,nil) end
local g=Duel.SelectMatchingCard(tp,c34053.cfilter,tp,LOCATION_SZONE+LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c34053.cfilter,tp,LOCATION_SZONE+LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(false,true,true) local te,ceg,cep,cev,cre,cr,crp=g:GetFirst():CheckActivateEffect(true,true,true)
if te then if te then
local tg=te:GetTarget() local tg=te:GetTarget()
if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) end if tg then tg(e,tp,ceg,cep,cev,cre,cr,crp,1) 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