Commit dc6093e1 authored by Nemo Ma's avatar Nemo Ma

fix

parent 42c5622f
...@@ -225,6 +225,7 @@ function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -225,6 +225,7 @@ function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function cm.disop(e,tp,eg,ep,ev,re,r,rp) function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.NegateEffect(ev) and re:GetHandler():IsRelateToEffect(re) then if c:IsRelateToEffect(e) and Duel.NegateEffect(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.SendtoGrave(eg,REASON_EFFECT) Duel.SendtoGrave(eg,REASON_EFFECT)
end end
......
...@@ -114,6 +114,7 @@ function cm.effectfilter(e,ct) ...@@ -114,6 +114,7 @@ function cm.effectfilter(e,ct)
return e:GetHandler():GetEquipGroup():IsContains(te:GetHandler()) return e:GetHandler():GetEquipGroup():IsContains(te:GetHandler())
end end
function cm.immcon(e) function cm.immcon(e)
local c=e:GetHandler()
return Duel.GetMatchingGroupCount(cm.eqfilter,tp,LOCATION_SZONE,LOCATION_SZONE,nil,c)>=3 return Duel.GetMatchingGroupCount(cm.eqfilter,tp,LOCATION_SZONE,LOCATION_SZONE,nil,c)>=3
end end
function cm.immfilter(e,te) function cm.immfilter(e,te)
......
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