Commit edb3d968 authored by Huangnan's avatar Huangnan

fix

parent 63b091b8
Pipeline #40588 passed with stage
in 1 minute and 8 seconds
No preview for this file type
......@@ -285,9 +285,7 @@
11600058 1 --璃月 云堇
11600096 0 --商之契约
11600103 1 --须弥 卡维
11600151 1 --稻妻 九条裟罗
11600152 1 --稻妻 神里绫华
11600153 1 --稻妻 神里绫人
11600156 1 --八重神子
11600157 1 --雷电将军
11600169 0 --正机之神
......@@ -336,7 +334,7 @@
11601365 0 --命定此身 璀耀永恒
11600158 0 --稻妻 珊瑚宫心海
11600166 1 --稻妻 宵宫
11600181 0 --稻妻—永恒国度
11600181 1 --稻妻—永恒国度
11600187 0 --旧时庭园
11601310 1 --逐火十三英桀·格蕾修·绘世者的童真
11601115 1 --逐火十三英桀·格蕾修
......@@ -346,7 +344,7 @@
11600036 0 --风与自由
11600126 0 --温妮莎传奇
11600196 0 --雷与永恒
11600560 0 --纳塔 茜特菈莉
11600560 1 --纳塔 茜特菈莉
#118
11800003 1 --『创造物』 绚烂
11800014 1 --『神秘守门人』丝碧涅
......@@ -632,7 +630,7 @@
13700007 1 --工艺之极致 无限龙兽
13700019 0 --灾厄的宣告 千年兽
13700041 0 --交际妖精
13700043 0 --圆满世界·捷尔加内亚
13700043 1 --圆满世界·捷尔加内亚
13700047 0 --绝对公正之蜻蜓队长
13700514 0 --玛丽小姐
13700516 0 --地底的安乐椅侦探
......@@ -1448,6 +1446,8 @@
30553308 0 --星辉刻录 [少女与猫]
30553309 1 --辉刻花舞 玫歌
30556808 1 --回应朝霞的呼唤
#307
30700058 0 --龙裔的渴求者
#309
30900000 1 --时空龙·刻神指令龙
30900023 1 --计时器幼龙
......@@ -2980,7 +2980,7 @@
81905020 0 --结界『光明与黑暗的网目』
81905022 0 --罔两『八云紫的神隐』
81905024 0 --结界『生与死的境界』
81907100 0 --地心融合
81907100 1 --地心融合
81907117 1 --地心灵殿 MerryChristmas
81907121 0 --地心灵殿 禁闭的觉之瞳
81907125 1 --地心灵殿空无 古明地恋
......
--稻妻—幻想梦灭
local s,id=GetID()
function s.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
c:RegisterEffect(e1)
--to grave1
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,id)
e2:SetCondition(s.descon)
e2:SetCost(s.tgcost1)
e2:SetTarget(s.tgtg1)
e2:SetOperation(s.tgop1)
c:RegisterEffect(e2)
--spsummon
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_FZONE)
e3:SetCountLimit(1)
e3:SetTarget(s.sptg)
e3:SetOperation(s.spop)
c:RegisterEffect(e3)
--cannot attack
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e4:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE)
e4:SetRange(LOCATION_SZONE)
e4:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e4:SetCondition(s.atkcon)
e4:SetTarget(s.atktg)
c:RegisterEffect(e4)
--check
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e5:SetCode(EVENT_ATTACK_ANNOUNCE)
e5:SetRange(LOCATION_SZONE)
e5:SetOperation(s.checkop)
e5:SetLabelObject(e4)
c:RegisterEffect(e5)
--cannot be target
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_FIELD)
e6:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
e6:SetRange(LOCATION_FZONE)
e6:SetTargetRange(0,LOCATION_MZONE)
e6:SetValue(s.atlimit)
c:RegisterEffect(e6)
end
function s.ckfilter1(c)
return c:IsFaceup() and c:IsSetCard(0x6541)
end
function s.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.ckfilter1,tp,LOCATION_ONFIELD,0,1,nil)
end
function s.tgcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToHandAsCost,tp,LOCATION_FZONE,0,1,nil) end
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToHandAsCost,tp,LOCATION_FZONE,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_COST)
end
function s.filter1(c)
return c:IsRace(RACE_FIEND) and c:IsAbleToGrave()
end
function s.tgtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLocation(tp,LOCATION_SZONE,5) end
end
function s.tgop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or not Duel.CheckLocation(tp,LOCATION_SZONE,5) then return end
Duel.MoveToField(c,tp,tp,LOCATION_FZONE,POS_FACEUP,true)
end
function s.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0x5541)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_PZONE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_PZONE,0,1,nil,e,tp) end
local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_PZONE,0,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end
function s.penfilter2(c)
return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x5541) and c:IsType(TYPE_MONSTER) and not c:IsForbidden()
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_PZONE,0,1,1,nil,e,tp)
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0
and (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD)
local g=Duel.SelectMatchingCard(tp,s.penfilter2,tp,LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst()
if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end
end
end
function s.atkcon(e)
return e:GetHandler():GetFlagEffect(id)~=0
end
function s.atktg(e,c)
return c:GetFieldID()~=e:GetLabel()
end
function s.checkop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(id)~=0 then return end
local fid=eg:GetFirst():GetFieldID()
e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
e:GetLabelObject():SetLabel(fid)
end
function s.atfilter(c,atk)
return c:IsFaceup() and c:IsRace(RACE_BEASTWARRIOR) and c:GetAttack()>atk
end
function s.atlimit(e,c)
return c:IsFaceup() and c:IsRace(RACE_BEASTWARRIOR) and Duel.IsExistingMatchingCard(s.atfilter,c:GetControler(),LOCATION_MZONE,0,1,nil,c:GetAttack())
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