Commit c96a7604 authored by DailyShana's avatar DailyShana

fix

for Duel.NegateActivation
parent 5bb5485e
...@@ -21,8 +21,7 @@ function c10069180.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,8 +21,7 @@ function c10069180.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c10069180.activate(e,tp,eg,ep,ev,re,r,rp) function c10069180.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -84,8 +84,7 @@ function c10443957.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -84,8 +84,7 @@ function c10443957.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c10443957.disop(e,tp,eg,ep,ev,re,r,rp) function c10443957.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -21,8 +21,7 @@ function c10651797.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,8 +21,7 @@ function c10651797.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c10651797.activate(e,tp,eg,ep,ev,re,r,rp) function c10651797.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -36,8 +36,7 @@ function c11819616.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -36,8 +36,7 @@ function c11819616.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c11819616.disop(e,tp,eg,ep,ev,re,r,rp) function c11819616.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -46,8 +46,7 @@ function c12298909.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,8 +46,7 @@ function c12298909.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c12298909.operation(e,tp,eg,ep,ev,re,r,rp) function c12298909.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -63,8 +63,7 @@ function c12408276.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -63,8 +63,7 @@ function c12408276.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c12408276.negop(e,tp,eg,ep,ev,re,r,rp) function c12408276.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -35,8 +35,7 @@ function c1287123.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,8 +35,7 @@ function c1287123.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c1287123.operation(e,tp,eg,ep,ev,re,r,rp) function c1287123.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -29,8 +29,7 @@ function c13026402.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,8 +29,7 @@ function c13026402.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c13026402.activate(e,tp,eg,ep,ev,re,r,rp) function c13026402.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -34,8 +34,7 @@ function c14152862.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -34,8 +34,7 @@ function c14152862.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c14152862.disop(e,tp,eg,ep,ev,re,r,rp) function c14152862.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -123,8 +123,7 @@ function c14799437.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -123,8 +123,7 @@ function c14799437.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c14799437.negop(e,tp,eg,ep,ev,re,r,rp) function c14799437.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT) Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -79,8 +79,7 @@ function c15180041.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -79,8 +79,7 @@ function c15180041.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end end
function c15180041.operation(e,tp,eg,ep,ev,re,r,rp) function c15180041.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
end end
......
...@@ -253,8 +253,7 @@ function c16172067.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -253,8 +253,7 @@ function c16172067.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c16172067.disop(e,tp,eg,ep,ev,re,r,rp) function c16172067.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -35,8 +35,7 @@ function c16940215.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,8 +35,7 @@ function c16940215.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c16940215.disop(e,tp,eg,ep,ev,re,r,rp) function c16940215.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -68,8 +68,7 @@ function c1697104.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,8 +68,7 @@ function c1697104.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetCondition(c1697104.rmcon) e1:SetCondition(c1697104.rmcon)
e1:SetOperation(c1697104.rmop) e1:SetOperation(c1697104.rmop)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -37,8 +37,7 @@ function c17266660.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,8 +37,7 @@ function c17266660.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c17266660.disop(e,tp,eg,ep,ev,re,r,rp) function c17266660.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -23,8 +23,7 @@ function c19252988.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,8 +23,7 @@ function c19252988.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c19252988.activate(e,tp,eg,ep,ev,re,r,rp) function c19252988.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -61,7 +61,9 @@ function c19502505.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -61,7 +61,9 @@ function c19502505.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end end
function c19502505.negop(e,tp,eg,ep,ev,re,r,rp) function c19502505.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT)
end
end end
function c19502505.thcon(e,tp,eg,ep,ev,re,r,rp) function c19502505.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -26,8 +26,7 @@ function c20140382.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c20140382.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c20140382.activate(e,tp,eg,ep,ev,re,r,rp) function c20140382.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -63,8 +63,7 @@ function c20374351.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -63,8 +63,7 @@ function c20374351.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c20374351.disop(e,tp,eg,ep,ev,re,r,rp) function c20374351.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -38,8 +38,7 @@ function c21074344.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,8 +38,7 @@ function c21074344.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c21074344.disop(e,tp,eg,ep,ev,re,r,rp) function c21074344.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c22747316.filter(c,code) ...@@ -26,8 +26,7 @@ function c22747316.filter(c,code)
end end
function c22747316.activate(e,tp,eg,ep,ev,re,r,rp) function c22747316.activate(e,tp,eg,ep,ev,re,r,rp)
local code=re:GetHandler():GetCode() local code=re:GetHandler():GetCode()
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c22747316.filter),tp,LOCATION_GRAVE,0,nil,code) local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c22747316.filter),tp,LOCATION_GRAVE,0,nil,code)
......
...@@ -124,8 +124,7 @@ function c23440231.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -124,8 +124,7 @@ function c23440231.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c23440231.negop(e,tp,eg,ep,ev,re,r,rp) function c23440231.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT) Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -28,8 +28,7 @@ function c2371506.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,8 +28,7 @@ function c2371506.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,800) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,800)
end end
function c2371506.activate(e,tp,eg,ep,ev,re,r,rp) function c2371506.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -37,10 +37,9 @@ end ...@@ -37,10 +37,9 @@ end
function c24838456.activate(e,tp,eg,ep,ev,re,r,rp) function c24838456.activate(e,tp,eg,ep,ev,re,r,rp)
local dg=Group.CreateGroup() local dg=Group.CreateGroup()
for i=1,ev do for i=1,ev do
Duel.NegateActivation(i)
local te=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT) local te=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT)
local tc=te:GetHandler() local tc=te:GetHandler()
if tc:IsRelateToEffect(e) and tc:IsRelateToEffect(te) then if Duel.NegateActivation(i) and tc:IsRelateToEffect(e) and tc:IsRelateToEffect(te) then
dg:AddCard(tc) dg:AddCard(tc)
end end
end end
......
...@@ -54,8 +54,7 @@ function c2572890.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,8 +54,7 @@ function c2572890.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c2572890.activate2(e,tp,eg,ep,ev,re,r,rp) function c2572890.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -32,8 +32,7 @@ function c26084285.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,8 +32,7 @@ function c26084285.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c26084285.operation(e,tp,eg,ep,ev,re,r,rp) function c26084285.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -29,8 +29,7 @@ function c26834022.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,8 +29,7 @@ function c26834022.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -81,8 +81,7 @@ end ...@@ -81,8 +81,7 @@ end
function c27346636.disop(e,tp,eg,ep,ev,re,r,rp) function c27346636.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -66,8 +66,7 @@ function c27978707.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -66,8 +66,7 @@ function c27978707.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c27978707.negop(e,tp,eg,ep,ev,re,r,rp) function c27978707.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -25,8 +25,7 @@ function c2924048.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,8 +25,7 @@ function c2924048.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c2924048.activate(e,tp,eg,ep,ev,re,r,rp) function c2924048.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c2926176.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c2926176.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c2926176.operation(e,tp,eg,ep,ev,re,r,rp) function c2926176.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -40,8 +40,7 @@ end ...@@ -40,8 +40,7 @@ end
function c2956282.disop(e,tp,eg,ep,ev,re,r,rp) function c2956282.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -36,8 +36,7 @@ function c29587993.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,8 +36,7 @@ function c29587993.disop(e,tp,eg,ep,ev,re,r,rp)
if tc:IsFacedown() or not tc:IsRelateToEffect(e) then return end if tc:IsFacedown() or not tc:IsRelateToEffect(e) then return end
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
if not tc:IsLocation(LOCATION_HAND) then return end if not tc:IsLocation(LOCATION_HAND) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -27,8 +27,7 @@ function c29735721.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,8 +27,7 @@ function c29735721.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c29735721.activate(e,tp,eg,ep,ev,re,r,rp) function c29735721.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -25,8 +25,7 @@ function c29934351.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,8 +25,7 @@ function c29934351.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c29934351.activate(e,tp,eg,ep,ev,re,r,rp) function c29934351.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -38,8 +38,7 @@ function c29981921.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,8 +38,7 @@ function c29981921.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c29981921.disop(e,tp,eg,ep,ev,re,r,rp) function c29981921.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -80,8 +80,7 @@ function c3064425.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -80,8 +80,7 @@ function c3064425.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,1000) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,1000)
end end
function c3064425.negop(e,tp,eg,ep,ev,re,r,rp) function c3064425.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 then
if re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 then
Duel.BreakEffect() Duel.BreakEffect()
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if Duel.Destroy(g,REASON_EFFECT)==0 then return end if Duel.Destroy(g,REASON_EFFECT)==0 then return end
......
...@@ -27,8 +27,7 @@ function c3149764.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,8 +27,7 @@ function c3149764.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c3149764.activate(e,tp,eg,ep,ev,re,r,rp) function c3149764.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -38,8 +38,7 @@ end ...@@ -38,8 +38,7 @@ end
function c33198837.disop(e,tp,eg,ep,ev,re,r,rp) function c33198837.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -71,8 +71,7 @@ function c34079868.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -71,8 +71,7 @@ function c34079868.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c34079868.disop(e,tp,eg,ep,ev,re,r,rp) function c34079868.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -87,8 +87,7 @@ function c34487429.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -87,8 +87,7 @@ function c34487429.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c34487429.disop(e,tp,eg,ep,ev,re,r,rp) function c34487429.disop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(c34487429.filter1,tp,LOCATION_SZONE,0,3,nil) then return end if not Duel.IsExistingMatchingCard(c34487429.filter1,tp,LOCATION_SZONE,0,3,nil) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -22,8 +22,7 @@ function c34507039.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -22,8 +22,7 @@ function c34507039.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c34507039.activate(e,tp,eg,ep,ev,re,r,rp) function c34507039.activate(e,tp,eg,ep,ev,re,r,rp)
local ec=re:GetHandler() local ec=re:GetHandler()
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
ec:CancelToGrave() ec:CancelToGrave()
Duel.SendtoDeck(ec,nil,2,REASON_EFFECT) Duel.SendtoDeck(ec,nil,2,REASON_EFFECT)
end end
......
...@@ -32,8 +32,7 @@ function c34545235.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,8 +32,7 @@ function c34545235.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c34545235.activate(e,tp,eg,ep,ev,re,r,rp) function c34545235.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -21,8 +21,7 @@ function c34717238.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,8 +21,7 @@ function c34717238.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c34717238.activate(e,tp,eg,ep,ev,re,r,rp) function c34717238.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -58,7 +58,7 @@ function c35011819.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,7 +58,7 @@ function c35011819.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c35011819.activate2(e,tp,eg,ep,ev,re,r,rp) function c35011819.activate2(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if not Duel.NegateActivation(ev) then return end
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT) Duel.Draw(p,d,REASON_EFFECT)
end end
...@@ -31,8 +31,7 @@ function c35561352.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,8 +31,7 @@ function c35561352.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c35561352.activate(e,tp,eg,ep,ev,re,r,rp) function c35561352.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -86,8 +86,7 @@ function c35952884.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -86,8 +86,7 @@ function c35952884.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c35952884.disop(e,tp,eg,ep,ev,re,r,rp) function c35952884.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -37,8 +37,7 @@ function c37241623.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,8 +37,7 @@ function c37241623.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c37241623.activate(e,tp,eg,ep,ev,re,r,rp) function c37241623.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(re:GetHandler(),REASON_EFFECT) Duel.Destroy(re:GetHandler(),REASON_EFFECT)
end end
end end
...@@ -32,6 +32,7 @@ function c3790062.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,6 +32,7 @@ function c3790062.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,500)
end end
function c3790062.operation(e,tp,eg,ep,ev,re,r,rp) function c3790062.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) then
Duel.Damage(1-tp,500,REASON_EFFECT) Duel.Damage(1-tp,500,REASON_EFFECT)
end
end end
...@@ -26,8 +26,7 @@ function c3819470.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c3819470.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c3819470.activate(e,tp,eg,ep,ev,re,r,rp) function c3819470.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -46,8 +46,7 @@ function c38275183.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,8 +46,7 @@ function c38275183.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c38275183.activate(e,tp,eg,ep,ev,re,r,rp) function c38275183.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -29,8 +29,7 @@ function c38491199.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,8 +29,7 @@ function c38491199.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c38491199.negop(e,tp,eg,ep,ev,re,r,rp) function c38491199.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -67,8 +67,7 @@ function c38814750.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,8 +67,7 @@ function c38814750.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetCondition(c38814750.rmcon) e1:SetCondition(c38814750.rmcon)
e1:SetOperation(c38814750.rmop) e1:SetOperation(c38814750.rmop)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -24,8 +24,7 @@ function c39276790.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -24,8 +24,7 @@ function c39276790.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c39276790.activate(e,tp,eg,ep,ev,re,r,rp) function c39276790.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -65,8 +65,7 @@ function c39711336.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,8 +65,7 @@ function c39711336.discon(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev)
end end
function c39711336.disop(e,tp,eg,ep,ev,re,r,rp) function c39711336.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(re:GetHandler(),REASON_EFFECT) Duel.Destroy(re:GetHandler(),REASON_EFFECT)
end end
end end
...@@ -36,8 +36,7 @@ function c40605147.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -36,8 +36,7 @@ function c40605147.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c40605147.activate(e,tp,eg,ep,ev,re,r,rp) function c40605147.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -70,8 +70,7 @@ function c41175645.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,8 +70,7 @@ function c41175645.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end end
function c41175645.operation(e,tp,eg,ep,ev,re,r,rp) function c41175645.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
end end
......
...@@ -58,8 +58,7 @@ function c41420027.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,8 +58,7 @@ function c41420027.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c41420027.activate2(e,tp,eg,ep,ev,re,r,rp) function c41420027.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -29,8 +29,7 @@ function c41458579.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,8 +29,7 @@ function c41458579.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c41458579.operation(e,tp,eg,ep,ev,re,r,rp) function c41458579.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -21,8 +21,7 @@ function c42309337.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,8 +21,7 @@ function c42309337.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c42309337.activate(e,tp,eg,ep,ev,re,r,rp) function c42309337.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -33,8 +33,7 @@ function c42752141.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,8 +33,7 @@ function c42752141.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c42752141.operation(e,tp,eg,ep,ev,re,r,rp) function c42752141.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -43,8 +43,7 @@ end ...@@ -43,8 +43,7 @@ end
function c43932460.disop(e,tp,eg,ep,ev,re,r,rp) function c43932460.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c44487250.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c44487250.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c44487250.activate(e,tp,eg,ep,ev,re,r,rp) function c44487250.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -47,8 +47,7 @@ function c44508094.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -47,8 +47,7 @@ function c44508094.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c44508094.operation(e,tp,eg,ep,ev,re,r,rp) function c44508094.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
e:GetHandler():RegisterFlagEffect(44508094,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,0) e:GetHandler():RegisterFlagEffect(44508094,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,0)
......
...@@ -37,8 +37,7 @@ function c44665365.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,8 +37,7 @@ function c44665365.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c44665365.disop(e,tp,eg,ep,ev,re,r,rp) function c44665365.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -35,8 +35,7 @@ end ...@@ -35,8 +35,7 @@ end
function c45037489.disop(e,tp,eg,ep,ev,re,r,rp) function c45037489.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -80,8 +80,7 @@ function c45041488.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -80,8 +80,7 @@ function c45041488.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c45041488.operation(e,tp,eg,ep,ev,re,r,rp) function c45041488.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -20,8 +20,7 @@ function c46031686.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -20,8 +20,7 @@ function c46031686.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,PLAYER_ALL,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,PLAYER_ALL,1)
end end
function c46031686.activate(e,tp,eg,ep,ev,re,r,rp) function c46031686.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
......
...@@ -48,8 +48,7 @@ function c4628897.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,8 +48,7 @@ function c4628897.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c4628897.negop(e,tp,eg,ep,ev,re,r,rp) function c4628897.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -42,8 +42,7 @@ function c46848859.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,8 +42,7 @@ function c46848859.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c46848859.operation(e,tp,eg,ep,ev,re,r,rp) function c46848859.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -66,8 +66,7 @@ end ...@@ -66,8 +66,7 @@ end
function c4722253.negop(e,tp,eg,ep,ev,re,r,rp) function c4722253.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingMatchingCard(c4722253.cfilter,tp,LOCATION_MZONE,0,1,nil) if Duel.IsExistingMatchingCard(c4722253.cfilter,tp,LOCATION_MZONE,0,1,nil)
or not Duel.IsExistingMatchingCard(c4722253.cfilter3,tp,LOCATION_MZONE,0,1,nil) then return end or not Duel.IsExistingMatchingCard(c4722253.cfilter3,tp,LOCATION_MZONE,0,1,nil) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -30,8 +30,7 @@ function c47360060.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,8 +30,7 @@ function c47360060.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c47360060.activate(e,tp,eg,ep,ev,re,r,rp) function c47360060.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -39,8 +39,7 @@ end ...@@ -39,8 +39,7 @@ end
function c48229808.operation(e,tp,eg,ep,ev,re,r,rp) function c48229808.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFacedown() or not c:IsRelateToEffect(e) then return end if c:IsFacedown() or not c:IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -54,8 +54,7 @@ function c48546368.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,8 +54,7 @@ function c48546368.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c48546368.negop(e,tp,eg,ep,ev,re,r,rp) function c48546368.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -27,8 +27,7 @@ function c49010598.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,8 +27,7 @@ function c49010598.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c49010598.activate(e,tp,eg,ep,ev,re,r,rp) function c49010598.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -80,8 +80,7 @@ function c49680980.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -80,8 +80,7 @@ function c49680980.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c49680980.operation(e,tp,eg,ep,ev,re,r,rp) function c49680980.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -38,10 +38,9 @@ function c50954680.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,10 +38,9 @@ function c50954680.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c50954680.operation(e,tp,eg,ep,ev,re,r,rp) function c50954680.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev)
local c=e:GetHandler() local c=e:GetHandler()
local rc=re:GetHandler() local rc=re:GetHandler()
if rc:IsRelateToEffect(re) and Duel.Destroy(rc,REASON_EFFECT)~=0 and rc:GetBaseAttack()>=0 if Duel.NegateActivation(ev) and rc:IsRelateToEffect(re) and Duel.Destroy(rc,REASON_EFFECT)~=0 and rc:GetBaseAttack()>=0
and c:IsRelateToEffect(e) and c:IsFaceup() then and c:IsRelateToEffect(e) and c:IsFaceup() then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -86,8 +86,7 @@ function c51543904.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -86,8 +86,7 @@ function c51543904.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c51543904.disop(e,tp,eg,ep,ev,re,r,rp) function c51543904.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -33,8 +33,7 @@ function c51852507.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,8 +33,7 @@ function c51852507.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c51852507.disop(e,tp,eg,ep,ev,re,r,rp) function c51852507.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -54,8 +54,7 @@ function c52068432.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,8 +54,7 @@ function c52068432.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end end
function c52068432.negop(e,tp,eg,ep,ev,re,r,rp) function c52068432.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
end end
......
...@@ -29,8 +29,7 @@ function c52228131.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,8 +29,7 @@ function c52228131.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c53112492.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c53112492.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c53112492.activate(e,tp,eg,ep,ev,re,r,rp) function c53112492.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -61,8 +61,7 @@ function c53262004.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,8 +61,7 @@ function c53262004.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,c53262004.disfilter,tp,LOCATION_EXTRA,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c53262004.disfilter,tp,LOCATION_EXTRA,0,1,1,nil)
if Duel.SendtoDeck(g,nil,2,REASON_EFFECT)~=0 then if Duel.SendtoDeck(g,nil,2,REASON_EFFECT)~=0 then
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -29,8 +29,7 @@ function c54903668.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,8 +29,7 @@ function c54903668.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c54903668.activate(e,tp,eg,ep,ev,re,r,rp) function c54903668.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -69,8 +69,7 @@ function c55063751.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,8 +69,7 @@ function c55063751.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c55063751.negop(e,tp,eg,ep,ev,re,r,rp) function c55063751.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT) Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c55117418.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c55117418.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c55117418.activate(e,tp,eg,ep,ev,re,r,rp) function c55117418.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -36,8 +36,7 @@ function c55256016.desfilter(c) ...@@ -36,8 +36,7 @@ function c55256016.desfilter(c)
return c:IsFaceup() return c:IsFaceup()
end end
function c55256016.operation(e,tp,eg,ep,ev,re,r,rp) function c55256016.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
local dg=Duel.GetMatchingGroup(c55256016.desfilter,tp,0,LOCATION_MZONE,nil) local dg=Duel.GetMatchingGroup(c55256016.desfilter,tp,0,LOCATION_MZONE,nil)
......
...@@ -27,8 +27,7 @@ function c5562461.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,8 +27,7 @@ function c5562461.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c5562461.activate(e,tp,eg,ep,ev,re,r,rp) function c5562461.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -21,8 +21,7 @@ function c56058888.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,8 +21,7 @@ function c56058888.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c56058888.activate(e,tp,eg,ep,ev,re,r,rp) function c56058888.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -64,8 +64,7 @@ function c56532353.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,8 +64,7 @@ function c56532353.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c56532353.operation(e,tp,eg,ep,ev,re,r,rp) function c56532353.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -23,8 +23,7 @@ function c56532632.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,8 +23,7 @@ function c56532632.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c56532632.activate(e,tp,eg,ep,ev,re,r,rp) function c56532632.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -101,8 +101,7 @@ function c56655675.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -101,8 +101,7 @@ function c56655675.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c56655675.disop(e,tp,eg,ep,ev,re,r,rp) function c56655675.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -65,8 +65,7 @@ function c57355219.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,8 +65,7 @@ function c57355219.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c57355219.activate2(e,tp,eg,ep,ev,re,r,rp) function c57355219.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
......
...@@ -29,8 +29,7 @@ function c57831349.desfilter(c) ...@@ -29,8 +29,7 @@ function c57831349.desfilter(c)
end end
function c57831349.activate(e,tp,eg,ep,ev,re,r,rp) function c57831349.activate(e,tp,eg,ep,ev,re,r,rp)
local ec=re:GetHandler() local ec=re:GetHandler()
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and ec:IsRelateToEffect(re) then
if ec:IsRelateToEffect(re) then
ec:CancelToGrave() ec:CancelToGrave()
if Duel.SendtoDeck(ec,nil,2,REASON_EFFECT)~=0 and ec:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then if Duel.SendtoDeck(ec,nil,2,REASON_EFFECT)~=0 and ec:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then
local g=Duel.GetMatchingGroup(c57831349.desfilter,tp,LOCATION_ONFIELD,0,e:GetHandler()) local g=Duel.GetMatchingGroup(c57831349.desfilter,tp,LOCATION_ONFIELD,0,e:GetHandler())
......
...@@ -30,8 +30,7 @@ function c58851034.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,8 +30,7 @@ function c58851034.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c58851034.activate(e,tp,eg,ep,ev,re,r,rp) function c58851034.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -30,8 +30,7 @@ function c59344077.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,8 +30,7 @@ function c59344077.activate(e,tp,eg,ep,ev,re,r,rp)
return return
end end
end end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -55,8 +55,7 @@ function c59718521.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,8 +55,7 @@ function c59718521.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c59718521.activate2(e,tp,eg,ep,ev,re,r,rp) function c59718521.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -24,8 +24,7 @@ function c59905358.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -24,8 +24,7 @@ function c59905358.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c59905358.activate(e,tp,eg,ep,ev,re,r,rp) function c59905358.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -38,8 +38,7 @@ function c59957503.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,8 +38,7 @@ function c59957503.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c59957503.activate(e,tp,eg,ep,ev,re,r,rp) function c59957503.activate(e,tp,eg,ep,ev,re,r,rp)
local ec=re:GetHandler() local ec=re:GetHandler()
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
ec:CancelToGrave() ec:CancelToGrave()
Duel.SendtoDeck(ec,nil,2,REASON_EFFECT) Duel.SendtoDeck(ec,nil,2,REASON_EFFECT)
end end
......
...@@ -31,8 +31,7 @@ function c60718396.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,8 +31,7 @@ function c60718396.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c60718396.activate(e,tp,eg,ep,ev,re,r,rp) function c60718396.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -59,8 +59,7 @@ function c61257789.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -59,8 +59,7 @@ function c61257789.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c61257789.negop(e,tp,eg,ep,ev,re,r,rp) function c61257789.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re)then
if re:GetHandler():IsRelateToEffect(re)then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
e:GetHandler():RegisterFlagEffect(61257789,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,0) e:GetHandler():RegisterFlagEffect(61257789,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,0)
......
...@@ -30,9 +30,8 @@ function c6137095.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,9 +30,8 @@ function c6137095.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c6137095.activate(e,tp,eg,ep,ev,re,r,rp) function c6137095.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev)
local rc=re:GetHandler() local rc=re:GetHandler()
if rc:IsRelateToEffect(re) then if Duel.NegateActivation(ev) and rc:IsRelateToEffect(re) then
if rc:IsStatus(STATUS_ACT_FROM_HAND) then if rc:IsStatus(STATUS_ACT_FROM_HAND) then
rc:CancelToGrave() rc:CancelToGrave()
Duel.SendtoHand(rc,nil,REASON_EFFECT) Duel.SendtoHand(rc,nil,REASON_EFFECT)
......
...@@ -30,8 +30,7 @@ function c6260554.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,8 +30,7 @@ function c6260554.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c6260554.activate(e,tp,eg,ep,ev,re,r,rp) function c6260554.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -31,8 +31,7 @@ function c65240384.negcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,8 +31,7 @@ function c65240384.negcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c65240384.negop(e,tp,eg,ep,ev,re,r,rp) function c65240384.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE) then if Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE) then
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
end end
......
...@@ -22,8 +22,7 @@ function c65703851.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -22,8 +22,7 @@ function c65703851.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c65703851.activate(e,tp,eg,ep,ev,re,r,rp) function c65703851.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT) Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -69,8 +69,7 @@ function c66547759.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,8 +69,7 @@ function c66547759.distg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end end
function c66547759.disop(e,tp,eg,ep,ev,re,r,rp) function c66547759.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
end end
...@@ -80,8 +80,7 @@ function c66816282.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -80,8 +80,7 @@ function c66816282.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c66816282.operation(e,tp,eg,ep,ev,re,r,rp) function c66816282.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -25,8 +25,7 @@ function c66994718.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,8 +25,7 @@ function c66994718.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c66994718.activate(e,tp,eg,ep,ev,re,r,rp) function c66994718.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(re:GetHandler(),REASON_EFFECT) Duel.Destroy(re:GetHandler(),REASON_EFFECT)
end end
end end
...@@ -62,8 +62,7 @@ function c67098114.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -62,8 +62,7 @@ function c67098114.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c67098114.disop(e,tp,eg,ep,ev,re,r,rp) function c67098114.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -33,8 +33,7 @@ function c67688478.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,8 +33,7 @@ function c67688478.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c67688478.operation(e,tp,eg,ep,ev,re,r,rp) function c67688478.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 then
if re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end end
......
...@@ -131,8 +131,7 @@ function c68140974.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -131,8 +131,7 @@ function c68140974.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c68140974.negop(e,tp,eg,ep,ev,re,r,rp) function c68140974.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c68456353.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c68456353.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND)
end end
function c68456353.activate(e,tp,eg,ep,ev,re,r,rp) function c68456353.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT,nil) Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT,nil)
......
...@@ -50,8 +50,7 @@ function c68819554.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,8 +50,7 @@ function c68819554.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c68819554.negop(e,tp,eg,ep,ev,re,r,rp) function c68819554.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -32,8 +32,7 @@ function c69279219.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,8 +32,7 @@ function c69279219.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c69279219.operation(e,tp,eg,ep,ev,re,r,rp) function c69279219.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -71,8 +71,7 @@ function c69488544.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -71,8 +71,7 @@ function c69488544.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c69488544.negop(e,tp,eg,ep,ev,re,r,rp) function c69488544.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(re:GetHandler(),REASON_EFFECT) Duel.Destroy(re:GetHandler(),REASON_EFFECT)
end end
end end
...@@ -27,8 +27,7 @@ function c69632396.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,8 +27,7 @@ function c69632396.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c69632396.activate(e,tp,eg,ep,ev,re,r,rp) function c69632396.activate(e,tp,eg,ep,ev,re,r,rp)
local ec=re:GetHandler() local ec=re:GetHandler()
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
ec:CancelToGrave() ec:CancelToGrave()
Duel.SendtoHand(ec,nil,REASON_EFFECT) Duel.SendtoHand(ec,nil,REASON_EFFECT)
end end
......
...@@ -25,8 +25,7 @@ function c70344351.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,8 +25,7 @@ function c70344351.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c70344351.activate(e,tp,eg,ep,ev,re,r,rp) function c70344351.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -67,8 +67,7 @@ end ...@@ -67,8 +67,7 @@ end
function c70780151.disop(e,tp,eg,ep,ev,re,r,rp) function c70780151.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -25,8 +25,7 @@ function c71060915.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,8 +25,7 @@ function c71060915.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c71060915.activate(e,tp,eg,ep,ev,re,r,rp) function c71060915.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -30,8 +30,7 @@ function c71466592.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,8 +30,7 @@ function c71466592.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c71466592.activate(e,tp,eg,ep,ev,re,r,rp) function c71466592.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -25,8 +25,7 @@ function c72648810.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,8 +25,7 @@ function c72648810.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c72648810.activate(e,tp,eg,ep,ev,re,r,rp) function c72648810.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT) Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -23,8 +23,7 @@ function c73026394.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,8 +23,7 @@ function c73026394.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_EXTRA)
end end
function c73026394.activate(e,tp,eg,ep,ev,re,r,rp) function c73026394.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
local g=Duel.GetMatchingGroup(c73026394.filter,tp,LOCATION_EXTRA,0,nil):RandomSelect(tp,1) local g=Duel.GetMatchingGroup(c73026394.filter,tp,LOCATION_EXTRA,0,nil):RandomSelect(tp,1)
......
...@@ -68,8 +68,7 @@ function c74203495.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,8 +68,7 @@ function c74203495.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetCondition(c74203495.rmcon) e1:SetCondition(c74203495.rmcon)
e1:SetOperation(c74203495.rmop) e1:SetOperation(c74203495.rmop)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -49,8 +49,7 @@ function c74294676.target1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -49,8 +49,7 @@ function c74294676.target1(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c74294676.operation1(e,tp,eg,ep,ev,re,r,rp) function c74294676.operation1(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -32,8 +32,7 @@ function c74416026.spfilter(c,e,tp) ...@@ -32,8 +32,7 @@ function c74416026.spfilter(c,e,tp)
end end
function c74416026.activate(e,tp,eg,ep,ev,re,r,rp) function c74416026.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS):Filter(c74416026.filter,nil,tp) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS):Filter(c74416026.filter,nil,tp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 then
if re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 then
local tg=g:Filter(Card.IsRelateToEffect,nil,re) local tg=g:Filter(Card.IsRelateToEffect,nil,re)
local sg=Duel.GetMatchingGroup(c74416026.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp) local sg=Duel.GetMatchingGroup(c74416026.spfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if tg:GetCount()>0 and sg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(74416026,0)) then if tg:GetCount()>0 and sg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(74416026,0)) then
......
...@@ -35,8 +35,7 @@ function c74593218.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,8 +35,7 @@ function c74593218.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c74593218.negop(e,tp,eg,ep,ev,re,r,rp) function c74593218.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)>0 then
if re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)>0 then
Duel.BreakEffect() Duel.BreakEffect()
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) and c:IsFaceup() then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -36,8 +36,7 @@ function c7478431.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -36,8 +36,7 @@ function c7478431.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c7478431.disop(e,tp,eg,ep,ev,re,r,rp) function c7478431.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -175,8 +175,7 @@ function c74822425.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -175,8 +175,7 @@ function c74822425.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c74822425.disop(e,tp,eg,ep,ev,re,r,rp) function c74822425.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)>0 then
if re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c74822425.filter,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c74822425.filter,tp,LOCATION_HAND,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -38,8 +38,7 @@ function c75286621.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,8 +38,7 @@ function c75286621.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c75286621.negop(e,tp,eg,ep,ev,re,r,rp) function c75286621.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT) Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -39,8 +39,7 @@ function c75487237.negcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,8 +39,7 @@ function c75487237.negcon(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c75487237.negop(e,tp,eg,ep,ev,re,r,rp) function c75487237.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE) Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE)
......
...@@ -26,8 +26,7 @@ function c75833426.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c75833426.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c75833426.activate(e,tp,eg,ep,ev,re,r,rp) function c75833426.activate(e,tp,eg,ep,ev,re,r,rp)
local ec=re:GetHandler() local ec=re:GetHandler()
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
ec:CancelToGrave() ec:CancelToGrave()
Duel.SendtoHand(ec,nil,REASON_EFFECT) Duel.SendtoHand(ec,nil,REASON_EFFECT)
end end
......
...@@ -34,8 +34,7 @@ function c76214441.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -34,8 +34,7 @@ function c76214441.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c76214441.disop(e,tp,eg,ep,ev,re,r,rp) function c76214441.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c76407432.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c76407432.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c76407432.activate(e,tp,eg,ep,ev,re,r,rp) function c76407432.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -31,8 +31,7 @@ function c77229910.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,8 +31,7 @@ function c77229910.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c77229910.operation(e,tp,eg,ep,ev,re,r,rp) function c77229910.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
...@@ -27,8 +27,7 @@ function c77414722.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,8 +27,7 @@ function c77414722.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c77414722.activate(e,tp,eg,ep,ev,re,r,rp) function c77414722.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -22,8 +22,7 @@ function c77538567.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -22,8 +22,7 @@ function c77538567.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,1-tp,1)
end end
function c77538567.activate(e,tp,eg,ep,ev,re,r,rp) function c77538567.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
Duel.Draw(1-tp,1,REASON_EFFECT) Duel.Draw(1-tp,1,REASON_EFFECT)
......
...@@ -76,8 +76,7 @@ function c78316184.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -76,8 +76,7 @@ function c78316184.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c78316184.negop(e,tp,eg,ep,ev,re,r,rp) function c78316184.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -112,8 +112,7 @@ function c7841112.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -112,8 +112,7 @@ function c7841112.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end end
function c7841112.negop(e,tp,eg,ep,ev,re,r,rp) function c7841112.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
......
...@@ -57,8 +57,7 @@ function c79606837.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,8 +57,7 @@ function c79606837.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c79606837.disop(e,tp,eg,ep,ev,re,r,rp) function c79606837.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -21,8 +21,7 @@ function c79649195.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,8 +21,7 @@ function c79649195.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c79649195.activate(e,tp,eg,ep,ev,re,r,rp) function c79649195.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -23,8 +23,7 @@ function c79759367.cfilter(c) ...@@ -23,8 +23,7 @@ function c79759367.cfilter(c)
return c:IsFaceup() and c:IsCode(74641045) return c:IsFaceup() and c:IsCode(74641045)
end end
function c79759367.activate(e,tp,eg,ep,ev,re,r,rp) function c79759367.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and Duel.IsExistingMatchingCard(c79759367.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
if Duel.IsExistingMatchingCard(c79759367.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 then and Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 then
local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND):RandomSelect(tp,1) local g=Duel.GetFieldGroup(tp,0,LOCATION_HAND):RandomSelect(tp,1)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
......
...@@ -35,8 +35,7 @@ function c799183.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,8 +35,7 @@ function c799183.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c799183.activate(e,tp,eg,ep,ev,re,r,rp) function c799183.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -51,8 +51,7 @@ function c8038143.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,8 +51,7 @@ function c8038143.activate(e,tp,eg,ep,ev,re,r,rp)
local dg=Group.CreateGroup() local dg=Group.CreateGroup()
for i=1,ev do for i=1,ev do
local te,tgp=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER) local te,tgp=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
if tgp~=tp and (te:IsActiveType(TYPE_MONSTER) or te:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(i) then if tgp~=tp and (te:IsActiveType(TYPE_MONSTER) or te:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.NegateActivation(i) then
Duel.NegateActivation(i)
local tc=te:GetHandler() local tc=te:GetHandler()
if tc:IsRelateToEffect(e) and tc:IsRelateToEffect(te) and not tc:IsHasEffect(EFFECT_CANNOT_TO_DECK) and Duel.IsPlayerCanSendtoDeck(tp,tc) then if tc:IsRelateToEffect(e) and tc:IsRelateToEffect(te) and not tc:IsHasEffect(EFFECT_CANNOT_TO_DECK) and Duel.IsPlayerCanSendtoDeck(tp,tc) then
tc:CancelToGrave() tc:CancelToGrave()
......
...@@ -32,8 +32,7 @@ function c80678380.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,8 +32,7 @@ function c80678380.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c80678380.activate(e,tp,eg,ep,ev,re,r,rp) function c80678380.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -29,8 +29,7 @@ function c81020646.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,8 +29,7 @@ function c81020646.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c81020646.disop(e,tp,eg,ep,ev,re,r,rp) function c81020646.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c81066751.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c81066751.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c81066751.activate(e,tp,eg,ep,ev,re,r,rp) function c81066751.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -31,8 +31,7 @@ function c81601517.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,8 +31,7 @@ function c81601517.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE)~=0 then if tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE)~=0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -54,10 +54,8 @@ function c82044279.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,10 +54,8 @@ function c82044279.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c82044279.operation(e,tp,eg,ep,ev,re,r,rp) function c82044279.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
local rc=re:GetHandler() Duel.Destroy(eg,REASON_EFFECT)
if rc:IsRelateToEffect(re) then
Duel.Destroy(rc,REASON_EFFECT)
end end
end end
function c82044279.atkcon(e,tp,eg,ep,ev,re,r,rp) function c82044279.atkcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -52,8 +52,7 @@ function c82382815.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,8 +52,7 @@ function c82382815.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c82382815.activate2(e,tp,eg,ep,ev,re,r,rp) function c82382815.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -55,8 +55,7 @@ function c82419869.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,8 +55,7 @@ function c82419869.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c82419869.disop(e,tp,eg,ep,ev,re,r,rp) function c82419869.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -84,8 +84,7 @@ function c82744076.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -84,8 +84,7 @@ function c82744076.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end end
function c82744076.negop(e,tp,eg,ep,ev,re,r,rp) function c82744076.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
end end
...@@ -27,8 +27,7 @@ function c8316565.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,8 +27,7 @@ function c8316565.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c8316565.activate(e,tp,eg,ep,ev,re,r,rp) function c8316565.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -49,8 +49,7 @@ function c84442536.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,8 +49,7 @@ function c84442536.activate(e,tp,eg,ep,ev,re,r,rp)
if sel==0 then if sel==0 then
Duel.ChangeChainOperation(ev,c84442536.repop) Duel.ChangeChainOperation(ev,c84442536.repop)
else else
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -61,8 +61,7 @@ function c84749824.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -61,8 +61,7 @@ function c84749824.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c84749824.activate2(e,tp,eg,ep,ev,re,r,rp) function c84749824.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -24,8 +24,7 @@ function c85854214.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -24,8 +24,7 @@ function c85854214.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c85854214.activate(e,tp,eg,ep,ev,re,r,rp) function c85854214.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -84,8 +84,7 @@ function c85991529.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -84,8 +84,7 @@ function c85991529.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c85991529.disop(e,tp,eg,ep,ev,re,r,rp) function c85991529.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -29,8 +29,7 @@ function c86474024.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,8 +29,7 @@ function c86474024.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c86474024.activate(e,tp,eg,ep,ev,re,r,rp) function c86474024.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -42,8 +42,7 @@ function c86690572.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,8 +42,7 @@ function c86690572.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c86690572.activate(e,tp,eg,ep,ev,re,r,rp) function c86690572.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -31,8 +31,7 @@ function c87313164.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,8 +31,7 @@ function c87313164.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c87313164.activate(e,tp,eg,ep,ev,re,r,rp) function c87313164.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -60,8 +60,7 @@ function c87460579.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -60,8 +60,7 @@ function c87460579.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c87460579.negop(e,tp,eg,ep,ev,re,r,rp) function c87460579.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -86,8 +86,7 @@ function c88307361.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -86,8 +86,7 @@ function c88307361.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c88307361.disop(e,tp,eg,ep,ev,re,r,rp) function c88307361.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -54,8 +54,7 @@ function c88619463.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,8 +54,7 @@ function c88619463.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c88619463.disop(e,tp,eg,ep,ev,re,r,rp,chk) function c88619463.disop(e,tp,eg,ep,ev,re,r,rp,chk)
if e:GetHandler():IsFacedown() or not e:GetHandler():IsRelateToEffect(e) then return end if e:GetHandler():IsFacedown() or not e:GetHandler():IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -28,8 +28,7 @@ function c88928798.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,8 +28,7 @@ function c88928798.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c88928798.activate(e,tp,eg,ep,ev,re,r,rp) function c88928798.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
Duel.Damage(1-tp,500,REASON_EFFECT) Duel.Damage(1-tp,500,REASON_EFFECT)
......
...@@ -40,8 +40,7 @@ function c88989706.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,8 +40,7 @@ function c88989706.discon(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev)
end end
function c88989706.disop(e,tp,eg,ep,ev,re,r,rp) function c88989706.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(re:GetHandler(),REASON_EFFECT) Duel.Destroy(re:GetHandler(),REASON_EFFECT)
end end
end end
......
...@@ -25,10 +25,13 @@ function c89563150.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,10 +25,13 @@ function c89563150.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
local g=Duel.GetMatchingGroup(c89563150.dfilter,tp,0,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(c89563150.dfilter,tp,0,LOCATION_ONFIELD,nil)
g:Merge(eg)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end end
function c89563150.disop(e,tp,eg,ep,ev,re,r,rp) function c89563150.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) then
local g=Duel.GetMatchingGroup(c89563150.dfilter,tp,0,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(c89563150.dfilter,tp,0,LOCATION_ONFIELD,nil)
Duel.Destroy(g,REASON_EFFECT) g:Merge(eg)
Duel.Destroy(g,REASON_EFFECT)
end
end end
...@@ -32,8 +32,7 @@ function c90434657.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,8 +32,7 @@ function c90434657.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c90434657.activate(e,tp,eg,ep,ev,re,r,rp) function c90434657.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -39,8 +39,7 @@ function c90555947.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,8 +39,7 @@ function c90555947.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c90555947.disop(e,tp,eg,ep,ev,re,r,rp) function c90555947.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c9059700.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c9059700.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c9059700.activate(e,tp,eg,ep,ev,re,r,rp) function c9059700.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -55,8 +55,7 @@ function c91078716.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,8 +55,7 @@ function c91078716.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c91078716.activate2(e,tp,eg,ep,ev,re,r,rp) function c91078716.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -59,8 +59,7 @@ function c92512625.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -59,8 +59,7 @@ function c92512625.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c92512625.activate2(e,tp,eg,ep,ev,re,r,rp) function c92512625.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -64,8 +64,7 @@ function c9272381.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,8 +64,7 @@ function c9272381.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c9272381.operation(e,tp,eg,ep,ev,re,r,rp) function c9272381.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -263,8 +263,7 @@ function c93157004.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -263,8 +263,7 @@ function c93157004.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c93157004.disop(e,tp,eg,ep,ev,re,r,rp) function c93157004.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -22,8 +22,7 @@ function c93396832.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -22,8 +22,7 @@ function c93396832.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c93396832.activate(e,tp,eg,ep,ev,re,r,rp) function c93396832.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -61,9 +61,8 @@ function c94662235.target2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -61,9 +61,8 @@ function c94662235.target2(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c94662235.activate2(e,tp,eg,ep,ev,re,r,rp) function c94662235.activate2(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev)
local ec=eg:GetFirst() local ec=eg:GetFirst()
if re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(ec,POS_FACEUP,REASON_EFFECT) Duel.Remove(ec,POS_FACEUP,REASON_EFFECT)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......
...@@ -38,8 +38,7 @@ function c94689635.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,8 +38,7 @@ function c94689635.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c94689635.disop(e,tp,eg,ep,ev,re,r,rp) function c94689635.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -26,8 +26,7 @@ function c96216229.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,8 +26,7 @@ function c96216229.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c96216229.activate(e,tp,eg,ep,ev,re,r,rp) function c96216229.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -56,8 +56,7 @@ end ...@@ -56,8 +56,7 @@ end
function c98502113.disop(e,tp,eg,ep,ev,re,r,rp) function c98502113.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -29,8 +29,7 @@ function c98956134.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,8 +29,7 @@ function c98956134.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c98956134.activate(e,tp,eg,ep,ev,re,r,rp) function c98956134.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -24,8 +24,7 @@ function c99188141.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -24,8 +24,7 @@ function c99188141.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c99188141.activate(e,tp,eg,ep,ev,re,r,rp) function c99188141.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(re:GetHandler(),POS_FACEUP,REASON_EFFECT) Duel.Remove(re:GetHandler(),POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -29,8 +29,7 @@ function c99902789.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,8 +29,7 @@ function c99902789.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c99902789.disop(e,tp,eg,ep,ev,re,r,rp) function c99902789.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -40,8 +40,7 @@ end ...@@ -40,8 +40,7 @@ end
function c99916754.disop(e,tp,eg,ep,ev,re,r,rp) function c99916754.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
Duel.NegateActivation(ev) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
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