Commit a9478de3 authored by 聖園ミカ's avatar 聖園ミカ 🐟

7

parent 81675d72
Pipeline #32229 passed with stages
in 63 minutes and 56 seconds
--钢钉兄弟会=作业机器人= 达德利·皇帝 --钢钉兄弟会=作业机器人= 达德利·皇帝
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
s.ex(c) --s.ex(c)
--Synchro summon --Synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1) aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit() c:EnableReviveLimit()
......
...@@ -33,7 +33,6 @@ function s.atu(c) ...@@ -33,7 +33,6 @@ function s.atu(c)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,id+514) e2:SetCountLimit(1,id+514)
e2:SetCondition(s.discon) e2:SetCondition(s.discon)
e2:SetTarget(s.distg)
e2:SetOperation(s.disop) e2:SetOperation(s.disop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
...@@ -43,11 +42,6 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,11 +42,6 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg return tg
end end
function s.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,0,LOCATION_GRAVE+LOCATION_REMOVED,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,1-tp,LOCATION_GRAVE+LOCATION_REMOVED)
Duel.SetOperationInfo(0,CATEGORY_ATKCHANGE,nil,0,tp,0)
end
function s.disop(e,tp,eg,ep,ev,re,r,rp) function s.disop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -9,7 +9,6 @@ function cm.initial_effect(c) ...@@ -9,7 +9,6 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCost(cm.sumcost) e1:SetCost(cm.sumcost)
e1:SetTarget(cm.sumtg)
e1:SetOperation(cm.sumop) e1:SetOperation(cm.sumop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--disable --disable
...@@ -30,9 +29,6 @@ function cm.sumcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,9 +29,6 @@ function cm.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return c:IsDiscardable() end if chk==0 then return c:IsDiscardable() end
Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD) Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD)
end end
function cm.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanSummon(tp) and Duel.GetFlagEffect(tp,m)==0 end
end
function cm.sumop(e,tp,eg,ep,ev,re,r,rp) function cm.sumop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,m)==0 then if Duel.GetFlagEffect(tp,m)==0 then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
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