Commit 541da80b authored by Huangnan's avatar Huangnan

fix

parent 300911f7
Pipeline #30078 passed with stages
in 30 minutes and 31 seconds
......@@ -31,13 +31,14 @@ function c1009022.initial_effect(c)
e4:SetLabelObject(e3)
c:RegisterEffect(e4)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_ADD_EXTRA_TRIBUTE)
e1:SetTargetRange(LOCATION_SZONE,0)
e1:SetValue(POS_FACEUP_ATTACK)
c:RegisterEffect(e1)
local e11=Effect.CreateEffect(c)
e11:SetType(EFFECT_TYPE_SINGLE)
e11:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e11:SetCode(EFFECT_ADD_EXTRA_TRIBUTE)
e11:SetTargetRange(LOCATION_SZONE,0)
e11:SetTarget(c1009022.exrtg)
e11:SetValue(POS_FACEUP_ATTACK)
c:RegisterEffect(e11)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(1160)
......@@ -72,6 +73,9 @@ function c1009022.initial_effect(c)
e4:SetOperation(c1009022.desop)
c:RegisterEffect(e4)
end
function c1009022.exrtg(e,c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsStatus(STATUS_LEAVE_CONFIRMED)
end
function c1009022.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeckAsCost() end
Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_COST)
......
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