Commit bf0a7792 authored by DailyShana's avatar DailyShana

fix simple negate activation

missing sending activating spell/trap to grave
parent e6ddd944
......@@ -57,6 +57,9 @@ function c47297616.opdisable(e,tp,eg,ep,ev,re,r,rp)
return
end
if Duel.NegateActivation(ev) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT)
end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT)
......
......@@ -36,6 +36,9 @@ function c70628672.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c70628672.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) then
if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT)
end
local cd=re:GetHandler():GetCode()
local g=Duel.GetMatchingGroup(Card.IsCode,rp,LOCATION_DECK+LOCATION_EXTRA,0,nil,cd)
if g:GetCount()>0 then
......
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