Commit 4fce4a12 authored by Tianchenglipu's avatar Tianchenglipu

Update c14469229.lua

parent 6b625c4b
--宝玉の守護者 --宝玉の守護者
function c14469229.initial_effect(c) function c14469229.initial_effect(c)
--pendulum summon --pendulum summon
aux.AddPendulumProcedure(c) aux.EnablePendulumAttribute(c)
--Activate --replace
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EFFECT_DESTROY_REPLACE)
e1:SetRange(LOCATION_PZONE)
e1:SetCountLimit(1)
e1:SetTarget(c14469229.indtg)
e1:SetValue(c14469229.indval)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--replace --double
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetDescription(aux.Stringid(14469229,0))
e2:SetCode(EFFECT_DESTROY_REPLACE) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_PZONE) e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e2:SetCountLimit(1) e2:SetRange(LOCATION_MZONE+LOCATION_HAND)
e2:SetTarget(c14469229.indtg) e2:SetCost(c14469229.cost)
e2:SetValue(c14469229.indval) e2:SetTarget(c14469229.target)
e2:SetOperation(c14469229.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--double
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(14469229,0))
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e3:SetRange(LOCATION_MZONE+LOCATION_HAND)
e3:SetCost(c14469229.cost)
e3:SetTarget(c14469229.target)
e3:SetOperation(c14469229.operation)
c:RegisterEffect(e3)
end end
function c14469229.indfilter(c,tp) function c14469229.indfilter(c,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsOnField() and c:IsReason(REASON_EFFECT) return c:IsFaceup() and c:IsControler(tp) and c:IsOnField() and c:IsReason(REASON_EFFECT)
......
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