Commit 3860ae9c authored by 未闻皂名's avatar 未闻皂名

2025/1/18 新增:哨兵指挥

parent b3c10e6b
Pipeline #32644 passed with stages
in 11 minutes and 2 seconds
No preview for this file type
local m=120277003
local cm=_G["c"..m]
cm.name="哨兵指挥"
function cm.initial_effect(c)
--Discard Deck
local e1=RD.CreateFusionEffect(c,cm.matfilter,cm.spfilter,nil,0,0,cm.matcheck)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(cm.condition)
c:RegisterEffect(e1)
end
--Discard Deck
function cm.confilter1(c)
return c:IsRace(RACE_GALAXY)
end
function cm.confilter2(c)
return c:IsType(TYPE_MONSTER) and not cm.confilter1(c)
end
function cm.matfilter(c)
return c:IsFusionAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK)
end
function cm.spfilter(c)
return c:IsLevel(9) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_GALAXY)
end
function cm.matcheck(tp,sg,fc)
return sg:GetClassCount(Card.GetAttribute)==sg:GetCount()
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter1,tp,LOCATION_GRAVE,0,1,nil)
and not Duel.IsExistingMatchingCard(cm.confilter2,tp,LOCATION_GRAVE,0,1,nil)
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