Commit 44daf6b4 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent e68fcf99
Pipeline #29907 passed with stages
in 49 minutes and 38 seconds
......@@ -34,7 +34,7 @@ function c50218139.initial_effect(c)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1)
e4:SetCondition(c50218139.negcon)
e4:SetTarget(c50218139.negtg)
e4:SetTarget(aux.nbtg)
e4:SetOperation(c50218139.negop)
c:RegisterEffect(e4)
--token
......@@ -72,13 +72,6 @@ function c50218139.negcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev) and re:GetOwner()~=e:GetOwner()
end
function c50218139.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.nbcon(tp,re) end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0)
end
end
function c50218139.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
......
......@@ -34,7 +34,7 @@ function c50218140.initial_effect(c)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1)
e4:SetCondition(c50218140.negcon)
e4:SetTarget(c50218140.negtg)
e4:SetTarget(aux.nbtg)
e4:SetOperation(c50218140.negop)
c:RegisterEffect(e4)
--token
......@@ -63,19 +63,12 @@ function c50218140.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c50218140.efilter(e,te)
return te:IsActiveType(TYPE_SPELL+TYPE_TRAP)
return te:IsActiveType(TYPE_SPELL+TYPE_TRAP) and te:GetOwnerPlayer()~=e:GetHandlerPlayer()
end
function c50218140.negcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainNegatable(ev)
end
function c50218140.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.nbcon(tp,re) end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,1,0,0)
end
end
function c50218140.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
......
......@@ -5,6 +5,7 @@ function c50221215.initial_effect(c)
e1:SetCategory(CATEGORY_TODECK+CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,50221215+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c50221215.target)
e1:SetOperation(c50221215.activate)
c:RegisterEffect(e1)
......
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