Commit bd9131d1 authored by 未闻皂名's avatar 未闻皂名

2023/6/12 新增:幻龙新卡

parent 58067e7c
Pipeline #22219 passed with stages
in 8 minutes and 45 seconds
No preview for this file type
local m=120247051
local cm=_G["c"..m]
cm.name="幻坏剑五指剑"
function cm.initial_effect(c)
--Activate
RD.RegisterEquipEffect(c,nil,nil,cm.target)
--Atk Up
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_EQUIP)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetValue(cm.upval)
c:RegisterEffect(e1)
end
--Activate
function cm.target(c,e,tp)
return c:IsControler(tp) and c:IsFaceup() and c:IsRace(RACE_WYRM)
end
--Atk Up
function cm.upfilter(c)
return c:IsRace(RACE_WYRM)
end
function cm.upval(e,c)
if Duel.IsExistingMatchingCard(cm.upfilter,e:GetHandlerPlayer(),LOCATION_GRAVE,0,5,nil) then
return 1000
else
return 500
end
end
\ No newline at end of file
local m=120247057
local cm=_G["c"..m]
cm.name="幻坏壁砾"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(cm.condition)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.confilter(c)
return c:IsFaceup() and c:IsLevelAbove(7) and c:IsRace(RACE_WYRM)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker()
return Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_MZONE,0,1,nil)
and tc:IsControler(1-tp) and tc:IsLevelBelow(8)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateAttack()
if Duel.GetFlagEffect(tp,m)==0 then
RD.CreateHintEffect(e,aux.Stringid(m,1),tp,0,1,RESET_PHASE+PHASE_END)
RD.CreateAttackLimitEffect(e,cm.atktg,tp,0,LOCATION_MZONE,RESET_PHASE+PHASE_END)
Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
end
end
function cm.atktg(e,c)
return c:IsLevelBelow(7)
end
\ No newline at end of file
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