Commit 5943ac3a authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent fd0de66c
......@@ -4,6 +4,7 @@ local cm=_G["c"..m]
Duel.LoadScript("c1110198.lua")
cm.named_with_Urban=true
function cm.initial_effect(c)
aux.AddCodeList(c,1102000)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
......
......@@ -22,14 +22,15 @@ function c50218640.initial_effect(c)
e2:SetTarget(c50218640.pctg)
e2:SetOperation(c50218640.pcop)
c:RegisterEffect(e2)
--negate
--disable
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DISABLE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCountLimit(1,50218640)
e3:SetTarget(c50218640.negtg)
e3:SetOperation(c50218640.negop)
e3:SetTarget(c50218640.distg)
e3:SetOperation(c50218640.disop)
c:RegisterEffect(e3)
--pendulum
local e4=Effect.CreateEffect(c)
......@@ -63,21 +64,15 @@ function c50218640.pcop(e,tp,eg,ep,ev,re,r,rp)
Duel.MoveToField(g:GetFirst(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end
end
function c50218640.filter1(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and not c:IsDisabled()
end
function c50218640.filter2(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT)
end
function c50218640.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
function c50218640.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return
Duel.IsExistingMatchingCard(c50218640.filter1,tp,0,LOCATION_MZONE,1,nil)
Duel.IsExistingMatchingCard(aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,nil)
end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,nil,1,0,0)
end
function c50218640.negop(e,tp,eg,ep,ev,re,r,rp)
function c50218640.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(c50218640.filter2,tp,0,LOCATION_MZONE,1,nil)
local g=Duel.GetMatchingGroup(aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,nil)
local tc=g:GetFirst()
while tc do
local e1=Effect.CreateEffect(c)
......
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