Commit 126988af authored by Huangnan's avatar Huangnan

fix

parent 051d4ea2
Pipeline #38645 passed with stage
in 3 minutes and 55 seconds
No preview for this file type
......@@ -717,28 +717,9 @@
# 救世之旅
# 光之战士系列
16400400 1 --光之战士 赛迦
16400272 1 --光之战士 杰克
16400291 1 --光之战士 赛文
16400405 1 --光之战士 雷杰多
16400500 1 --光之战士 诺亚
16400374 1 --光之战士 泽塔 原始
16400289 1 --光之战士 阿斯特拉
16400286 1 --光之战士 奥特曼
16400379 1 --光之战士 泽塔 德尔塔天爪
16400337 1 --光之战士 捷德 刚燃
16400316 1 --光之战士 欧布 三重
16400390 1 --光之战士 罗布
16400370 1 --光之战士 布鲁 跃水
16400295 1 --等离子火花塔
16400296 1 --宇宙警备队 本部
16400329 1 --奥特宇宙港
16400330 1 --奥特竞技场
16400331 1 --奥特技术实验室
# 光之战士系列(限制为2)
16400270 2 --光之战士 希卡利
16400278 2 --光之战士 维克特利
16400322 2 --光之战士 奈克赛斯
16400297 2 --光之战士 出动
16400295 2 --光之战士 泽塔 原始
# 从零开始系列
16401140 1 --雷古勒斯·柯尔尼亚斯
16401410 1 --由里乌斯·尤克历乌斯
......@@ -2439,34 +2420,6 @@
65710015 0 --悲剧的圣乔治 莎士比亚
65710135 0 --童话的绘梦者 路德维希·格林
#658
65810015 1 --盛夏回忆·苍蝇
65810025 1 --盛夏回忆·生机
65810030 0 --盛夏回忆·天牛
65810050 1 --盛夏回忆·飞蛾
65810055 0 --盛夏回忆·蝴蝶
65810065 0 --盛夏回忆·蜜蜂
65810070 1 --盛夏回忆·飞舞
65810080 1 --盛夏回忆·栖息地
65810085 0 --盛夏回忆·螳螂
65810100 0 --盛夏回忆·隐翅虫
65810115 1 --盛夏回忆·蝎子
65820000 0 --漆黑噤默-罗兰
65820005 0 --漆黑噤默-安吉丽卡
65820010 0 --漆黑噤默-Furioso
65820020 0 --工坊武器·老男孩工坊
65820025 1 --工坊武器·榉树工坊
65820060 0 --追忆·图书馆
65830015 2 --居合斩!一击必杀
65830045 1 --居合斩!蓄势待发
65899905 0 --抽1!抽1!再抽1
65899920 0 --反多元防空炮
65899935 0 --甲虫武士
65870030 1 ----Protoss·黑暗圣堂武士
65870055 1 --Protoss·执政官
65870110 1 --Protoss·黑暗执政官
65870025 1 --Protoss·母舰核心
65899940 0 --万虫希冀之手
65899900 0 --时间刻错误
65810035 0 --夏日共鸣曲·繁星共鸣曲
#666
......
--木原唯一
local s,id,o=GetID()
s.MoJin=true
function s.initial_effect(c)
c:SetUniqueOnField(1,1,id)
--synchro summon
aux.AddSynchroProcedure(c,s.sfliter,aux.TRUE,1)
c:EnableReviveLimit()
--
aux.EnablePendulumAttribute(c,false)
--copy
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(5012620,0))
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(s.cost)
e1:SetCondition(s.thcon)
e1:SetOperation(s.operation)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_PZONE)
e2:SetCountLimit(1)
e2:SetTarget(s.destg)
e2:SetOperation(s.desop)
c:RegisterEffect(e2)
--
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_DESTROY_REPLACE)
e4:SetTarget(s.desreptg)
c:RegisterEffect(e4)
end
function s.sfliter(c)
return (c.MoJin or c:IsSetCard(0x23c))
end
function s.filter(c)
return c:IsType(TYPE_EFFECT) and c:IsAbleToRemove()
end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_EXTRA,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,s.filter,tp,0,LOCATION_EXTRA,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST)
e:SetLabel(g:GetFirst():GetOriginalCode())
end
function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local code=e:GetLabel()
if c:IsRelateToEffect(e) and c:IsFaceup() then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetReset(RESET_EVENT+0x1fe0000)
--e1:SetCode(EFFECT_CHANGE_CODE)
e1:SetValue(code)
c:RegisterEffect(e1)
c:CopyEffect(code,RESET_EVENT+0x1fe0000,1)
end
end
function s.rstop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local cid=e:GetLabel()
c:ResetEffect(cid,RESET_COPY)
local e1=e:GetLabelObject()
e1:Reset()
Duel.HintSelection(Group.FromCards(c))
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
end
function s.desop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,e:GetHandler())
Duel.Destroy(g,REASON_EFFECT)
end
function s.repfilter(c)
return c:IsAbleToRemoveAsCost() --and rstm.IsSet(c)
end
function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(s.repfilter,tp,LOCATION_GRAVE,0,1,nil) end
if Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,s.repfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST)
return true
else return false 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