Commit 105b41cf authored by DailyShana's avatar DailyShana

fix simple negate activation

missing sending activating spell/trap to grave
parent f418b74f
...@@ -35,7 +35,9 @@ function c21834870.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,7 +35,9 @@ function c21834870.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 c21834870.operation(e,tp,eg,ep,ev,re,r,rp) function c21834870.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
Duel.SendtoGrave(eg,REASON_EFFECT)
end
end end
function c21834870.spcon(e,tp,eg,ep,ev,re,r,rp) function c21834870.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -37,6 +37,8 @@ function c24027078.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,6 +37,8 @@ function c24027078.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,c24027078.filter2,tp,LOCATION_ONFIELD,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c24027078.filter2,tp,LOCATION_ONFIELD,0,1,1,nil)
if #g>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then if #g>0 and Duel.Destroy(g,REASON_EFFECT)~=0 then
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
end end
...@@ -89,5 +89,7 @@ function c27548199.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -89,5 +89,7 @@ function c27548199.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 c27548199.disop(e,tp,eg,ep,ev,re,r,rp) function c27548199.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
Duel.SendtoGrave(eg,REASON_EFFECT)
end
end end
...@@ -78,7 +78,9 @@ function c47946130.negop(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -78,7 +78,9 @@ function c47946130.negop(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetValue(-500) e1:SetValue(-500)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not c:IsImmuneToEffect(e1) and not c:IsHasEffect(EFFECT_REVERSE_UPDATE) then if not c:IsImmuneToEffect(e1) and not c:IsHasEffect(EFFECT_REVERSE_UPDATE) then
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
end end
function c47946130.atkcon(e,tp,eg,ep,ev,re,r,rp) function c47946130.atkcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -45,7 +45,9 @@ function c49725936.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -45,7 +45,9 @@ function c49725936.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 c49725936.negop(e,tp,eg,ep,ev,re,r,rp) function c49725936.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 c49725936.spcon(e,tp,eg,ep,ev,re,r,rp) function c49725936.spcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN) return not e:GetHandler():IsStatus(STATUS_SPSUMMON_TURN)
......
...@@ -56,7 +56,9 @@ function c64454614.negtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -56,7 +56,9 @@ function c64454614.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 c64454614.negop(e,tp,eg,ep,ev,re,r,rp,chk) function c64454614.negop(e,tp,eg,ep,ev,re,r,rp,chk)
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 c64454614.spcon(e,tp,eg,ep,ev,re,r,rp) function c64454614.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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