Commit 61b7cee1 authored by 未闻皂名's avatar 未闻皂名

2024/6/23 新增:暗物质人偶·秘雾法师

parent 82f28d58
Pipeline #27914 passed with stages
in 7 minutes
No preview for this file type
No preview for this file type
...@@ -5,9 +5,6 @@ LEGEND_MONSTER = 120000000 ...@@ -5,9 +5,6 @@ LEGEND_MONSTER = 120000000
LEGEND_SPELL = 120000001 LEGEND_SPELL = 120000001
LEGEND_TRAP = 120000002 LEGEND_TRAP = 120000002
-- 暗物质人偶·秘雾法师
CODE_DARK_MATTER_MIST=120000101
RushDuel.LegendCodes = { -- 青眼白龙 RushDuel.LegendCodes = { -- 青眼白龙
{120120000, 120198001, 120231001}, -- 真红眼黑龙 {120120000, 120198001, 120231001}, -- 真红眼黑龙
{120125001, 120203016, 120229101}, -- 黑魔术师 {120125001, 120203016, 120229101}, -- 黑魔术师
......
local m=120261021 local m=120261021
local list={CODE_DARK_MATTER_MIST} local list={120264005}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质人偶·岩偶" cm.name="暗物质人偶·岩偶"
function cm.initial_effect(c) function cm.initial_effect(c)
......
local m=120261023 local m=120261023
local list={CODE_DARK_MATTER_MIST,120196050} local list={120264005,120196050}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质人偶·土偶" cm.name="暗物质人偶·土偶"
function cm.initial_effect(c) function cm.initial_effect(c)
......
local m=120261026 local m=120261026
local list={CODE_DARK_MATTER_MIST,120261023,120261021} local list={120264005,120261023,120261021}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质人偶·危害人偶" cm.name="暗物质人偶·危害人偶"
function cm.initial_effect(c) function cm.initial_effect(c)
......
local m=120261048 local m=120261048
local list={CODE_DARK_MATTER_MIST} local list={120264005}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质人偶·谜团机偶" cm.name="暗物质人偶·谜团机偶"
function cm.initial_effect(c) function cm.initial_effect(c)
......
local m=120261049 local m=120261049
local list={120261025,CODE_DARK_MATTER_MIST} local list={120261025,120264005}
local cm=_G["c"..m] local cm=_G["c"..m]
cm.name="暗物质自动偶·谜团夜骑士" cm.name="暗物质自动偶·谜团夜骑士"
function cm.initial_effect(c) function cm.initial_effect(c)
......
local m=120264005
local list={120264006,120264005}
local cm=_G["c"..m]
cm.name="暗物质人偶·秘雾法师"
function cm.initial_effect(c)
RD.AddCodeList(c,list)
--Special Summon Procedure
RD.AddHandSpecialSummonProcedure(c,aux.Stringid(m,0),cm.spcon)
--Change Code
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,1))
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
--Special Summon Procedure
function cm.spconfilter(c)
return c:IsFaceup() and c:IsCode(list[1])
end
function cm.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.spconfilter,tp,LOCATION_ONFIELD,0,1,nil)
end
--Change Code
function cm.filter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_GALAXY) and not c:IsCode(list[2])
end
cm.cost=RD.CostPayLP(500)
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE,0,1,nil) end
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
RD.SelectAndDoAction(aux.Stringid(m,2),cm.filter,tp,LOCATION_MZONE,0,1,1,nil,function(g)
RD.ChangeCode(e,g:GetFirst(),list[2],RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end)
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