Commit 988dc819 authored by 未闻皂名's avatar 未闻皂名

2025/1/23 新增:混沌哨兵

parent e0a70c16
Pipeline #32743 passed with stages
in 9 minutes and 54 seconds
No preview for this file type
local m=120277041
local list={120277003,120277051}
local cm=_G["c"..m]
cm.name="混沌哨兵"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Fusion Material
RD.AddFusionProcedure(c,cm.matfilter1,cm.matfilter2)
--Special Summon Condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetValue(cm.limit)
c:RegisterEffect(e1)
--Cannot To Hand & Deck & Extra
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_TO_HAND_EFFECT)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_ONFIELD,0)
e2:SetCondition(cm.condition)
e2:SetTarget(cm.target)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_TO_DECK_EFFECT)
c:RegisterEffect(e3)
--Continuous Effect
RD.AddContinuousEffect(c,e2,e3)
end
--Fusion Material
cm.unspecified_funsion=true
function cm.matfilter1(c)
return c:IsAttackAbove(1500)
end
function cm.matfilter2(c)
return c:IsAttackBelow(1500)
end
--Special Summon Condition
function cm.limit(e,se,sp,st)
return se:GetHandler():IsCode(list[1],list[2])
end
--Cannot To Hand & Deck & Extra
function cm.condition(e)
return Duel.GetTurnPlayer()~=e:GetHandlerPlayer()
end
function cm.target(e,c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
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