Commit 5af06868 authored by DailyShana's avatar DailyShana
parent 3f2d4a3c
...@@ -22,10 +22,13 @@ function c39711336.initial_effect(c) ...@@ -22,10 +22,13 @@ function c39711336.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--negate --negate
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e3:SetCategory(CATEGORY_DESTROY+CATEGORY_NEGATE)
e3:SetType(EFFECT_TYPE_QUICK_F)
e3:SetCode(EVENT_CHAINING)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCode(EVENT_CHAIN_ACTIVATING) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e3:SetCondition(c39711336.discon) e3:SetCondition(c39711336.discon)
e3:SetTarget(c39711336.distg)
e3:SetOperation(c39711336.disop) e3:SetOperation(c39711336.disop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
...@@ -62,10 +65,18 @@ function c39711336.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,10 +65,18 @@ function c39711336.discon(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
if not tg or not tg:IsContains(e:GetHandler()) then return false end if not tg or not tg:IsContains(e:GetHandler()) then return false end
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) return re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function c39711336.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
end end
function c39711336.disop(e,tp,eg,ep,ev,re,r,rp) function c39711336.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetCurrentChain()~=ev+1 then return end
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(re:GetHandler(),REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -8,10 +8,13 @@ function c88989706.initial_effect(c) ...@@ -8,10 +8,13 @@ function c88989706.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--negate --negate
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetCategory(CATEGORY_DESTROY+CATEGORY_NEGATE)
e2:SetType(EFFECT_TYPE_QUICK_F)
e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCode(EVENT_CHAIN_ACTIVATING) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetCondition(c88989706.discon) e2:SetCondition(c88989706.discon)
e2:SetTarget(c88989706.distg)
e2:SetOperation(c88989706.disop) e2:SetOperation(c88989706.disop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--special summon --special summon
...@@ -37,11 +40,19 @@ function c88989706.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,11 +40,19 @@ function c88989706.discon(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
if not tg or not tg:IsContains(e:GetHandler()) then return false end if not tg or not tg:IsContains(e:GetHandler()) then return false end
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) return re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function c88989706.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end
end end
function c88989706.disop(e,tp,eg,ep,ev,re,r,rp) function c88989706.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetCurrentChain()~=ev+1 then return end
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(re:GetHandler(),REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
function c88989706.spcon(e,tp,eg,ep,ev,re,r,rp) function c88989706.spcon(e,tp,eg,ep,ev,re,r,rp)
......
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