Commit ccf3a42c authored by HidarimeYume's avatar HidarimeYume Committed by GitHub

Fix Shadow Impulse (#1976)

Fixed an issue that Shadow Impulse could activate when a Synchro monster was destroyed from places other than monster zone.
parent 9e44cd92
...@@ -12,7 +12,7 @@ function c35329581.initial_effect(c) ...@@ -12,7 +12,7 @@ function c35329581.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c35329581.filter(c,e,tp) function c35329581.filter(c,e,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsCanBeEffectTarget(e) return c:IsLocation(LOCATION_GRAVE) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsCanBeEffectTarget(e)
and c:IsPreviousControler(tp) and c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousControler(tp) and c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
and c:IsType(TYPE_SYNCHRO) and Duel.IsExistingMatchingCard(c35329581.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) and c:IsType(TYPE_SYNCHRO) and Duel.IsExistingMatchingCard(c35329581.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c)
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