Commit ea49d3c8 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent b68197cc
......@@ -81,8 +81,7 @@ function s.negate(c)
c:RegisterEffect(e3)
end
function s.discon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and Duel.IsChainDisablable(ev) and re:IsActiveType(TYPE_MONSTER)
and not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
return rp~=tp and Duel.IsChainDisablable(ev) and not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
and Duel.GetFlagEffect(tp,47320100)>=5 and Duel.GetFlagEffect(tp,47319116)==0
end
function s.disop(e,tp,eg,ep,ev,re,r,rp)
......@@ -93,7 +92,6 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateEffect(ev) and rc:IsRelateToEffect(re) then
Duel.Destroy(rc,REASON_EFFECT)
end
Duel.RegisterFlagEffect(tp,47319116,RESET_PHASE+PHASE_END,0,1)
end
end
function s.tofield(c)
......
......@@ -17,13 +17,13 @@ function cm.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_NEGATE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_MZONE)
e2:SetCode(1)
e2:SetCondition(cm.discon)
e2:SetTarget(cm.distg)
e2:SetOperation(cm.disop)
e2:SetCountLimit(1)
e2:SetCondition(cm.negcon)
e2:SetTarget(cm.negtg)
e2:SetOperation(cm.negop)
c:RegisterEffect(e2)
--special summon
local e3=Effect.CreateEffect(c)
......@@ -37,16 +37,14 @@ function cm.initial_effect(c)
e3:SetOperation(cm.sumop)
c:RegisterEffect(e3)
end
function cm.discon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsStatus(STATUS_BATTLE_DESTROYED) then return false end
function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainNegatable(ev)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
function cm.negtg(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)
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
function cm.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev)
end
function cm.sumcon(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