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

2024/7/13 正式卡更新

parent 86ea9b04
Pipeline #28393 passed with stages
in 8 minutes and 26 seconds
No preview for this file type
No preview for this file type
No preview for this file type
local m=120261163
local cm=_G["c"..m]
cm.name="即兴果酱音跃:P抓取!"
function cm.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetCondition(cm.condition)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.activate)
c:RegisterEffect(e1)
end
--Activate
function cm.costfilter(c)
return c:IsRace(RACE_PSYCHO) and c:IsAbleToDeckOrExtraAsCost()
end
function cm.exfilter(c)
return c:IsType(TYPE_NORMAL) and c:IsRace(RACE_PSYCHO)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker():IsControler(1-tp)
end
cm.cost=RD.CostSendGraveToDeck(cm.costfilter,2,4)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetAttacker()
if chk==0 then return tc:IsAttackPos() and RD.IsCanChangePosition(tc) end
Duel.SetOperationInfo(0,CATEGORY_POSITION,tc,1,0,0)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker()
if tc:IsRelateToBattle() and tc:IsAttackPos()
and RD.ChangePosition(tc,POS_FACEUP_DEFENSE)~=0
and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_GRAVE,0,1,nil) then
local ct=6-Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)
if ct>0 then
RD.CanDraw(aux.Stringid(m,1),tp,ct)
end
end
end
\ No newline at end of file
local m=120263010 local m=120263010
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="升华英雄 银枪侠" cm.name="锐进英雄 银甲侠"
function cm.initial_effect(c) function cm.initial_effect(c)
--To Hand --To Hand
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
local m=120263012 local m=120263012
local list={120196050,120263032} local list={120196050,120263032}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="英雄男孩" cm.name="英雄少年"
function cm.initial_effect(c) function cm.initial_effect(c)
RD.AddCodeList(c,list) RD.AddCodeList(c,list)
--To Hand --To Hand
......
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