Commit ac431ad0 authored by root's avatar root

Refresh on 2025-07-06 16:41:07

parent f2b0fbeb
--转瞬即逝的噩梦 --转瞬即逝的噩梦
local s,id,o=GetID() local s,id,o=GetID()
o=1e9
function s.initial_effect(c) function s.initial_effect(c)
--activate --activate
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
...@@ -72,11 +73,13 @@ end ...@@ -72,11 +73,13 @@ end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
Duel.Destroy(tc,REASON_EFFECT) if Duel.Destroy(tc,REASON_EFFECT)>0 and tc:IsType(TYPE_PENDULUM) then
e:GetHandler():RegisterFlagEffect(id+o,RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end
end end
function s.sdcon(e,tp,eg,ep,ev,re,r,rp) function s.sdcon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,22200403) return e:GetHandler():GetFlagEffect(id+o)>0 and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,22200403)
end end
function s.sdop(e,tp,eg,ep,ev,re,r,rp) function s.sdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -21,9 +21,7 @@ function s.cfilter(c,id) ...@@ -21,9 +21,7 @@ function s.cfilter(c,id)
return c:IsFaceup() and c:IsCode(id) return c:IsFaceup() and c:IsCode(id)
end end
function s.condition(e,tp,eg,ep,ev,re,r,rp) function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLocationCount(tp,LOCATION_SZONE)>=3 and ( return Duel.GetLocationCount(tp,LOCATION_SZONE)>=3
Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil,53375573)
or Duel.IsExistingMatchingCard(s.cfilter,tp,0,LOCATION_ONFIELD,1,nil,53982768))
end end
function s.filter(c,tp,code) function s.filter(c,tp,code)
return c:IsCode(code) and c:GetActivateEffect():IsActivatable(tp,true,true) return c:IsCode(code) and c:GetActivateEffect():IsActivatable(tp,true,true)
...@@ -35,6 +33,8 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,6 +33,8 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.activate(e,tp,eg,ep,ev,re,r,rp)
local skip=Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil,53375573)
or Duel.IsExistingMatchingCard(s.cfilter,tp,0,LOCATION_ONFIELD,1,nil,53982768)
for _, tid in ipairs({82732705,73599290,68937720}) do for _, tid in ipairs({82732705,73599290,68937720}) do
local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK,0,1,1,nil,tp,tid):GetFirst() local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK,0,1,1,nil,tp,tid):GetFirst()
if tc then if tc then
...@@ -42,8 +42,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,8 +42,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local te=tc:GetActivateEffect() local te=tc:GetActivateEffect()
te:UseCountLimit(tp,1,true) te:UseCountLimit(tp,1,true)
local tep=tc:GetControler() local tep=tc:GetControler()
if not skip then
local cost=te:GetCost() local cost=te:GetCost()
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
end
Duel.RaiseEvent(tc,tid,te,0,tp,tp,Duel.GetCurrentChain()) Duel.RaiseEvent(tc,tid,te,0,tp,tp,Duel.GetCurrentChain())
else else
return return
......
...@@ -6,6 +6,7 @@ function s.initial_effect(c) ...@@ -6,6 +6,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY) e1:SetCategory(CATEGORY_DISABLE_SUMMON+CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_SPSUMMON) e1:SetCode(EVENT_SPSUMMON)
e1:SetCondition(s.con1)
e1:SetCost(s.cost1) e1:SetCost(s.cost1)
e1:SetTarget(s.target1) e1:SetTarget(s.target1)
e1:SetOperation(s.activate1) e1:SetOperation(s.activate1)
...@@ -18,6 +19,9 @@ function s.initial_effect(c) ...@@ -18,6 +19,9 @@ function s.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
Duel.AddCustomActivityCounter(id,ACTIVITY_CHAIN,s.chainfilter) Duel.AddCustomActivityCounter(id,ACTIVITY_CHAIN,s.chainfilter)
end end
function s.con1(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp
end
function s.cost1(e,tp,eg,ep,ev,re,r,rp,chk) function s.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local lp=math.floor(Duel.GetLP(tp)/2) local lp=math.floor(Duel.GetLP(tp)/2)
......
...@@ -19,7 +19,7 @@ function s.initial_effect(c) ...@@ -19,7 +19,7 @@ function s.initial_effect(c)
e2:SetCategory(CATEGORY_DESTROY) e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_REMOVE) e2:SetCode(EVENT_REMOVE)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_SET_AVAILABLE) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e2:SetCondition(s.rmcon) e2:SetCondition(s.rmcon)
e2:SetTarget(s.rmtg) e2:SetTarget(s.rmtg)
e2:SetOperation(s.rmop) e2:SetOperation(s.rmop)
......
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