Commit 96b4b711 authored by 未闻皂名's avatar 未闻皂名

2023/9/16 bug修复

parent 0a099b61
Pipeline #23487 passed with stages
in 6 minutes and 56 seconds
No preview for this file type
...@@ -15,7 +15,7 @@ function cm.initial_effect(c) ...@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end end
--Cannot Trigger --Cannot Trigger
function cm.filter(c) function cm.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) and not card:IsHasEffect(EFFECT_CANNOT_TRIGGER) return c:IsFacedown() and c:IsType(TYPE_SPELL+TYPE_TRAP) and not c:IsHasEffect(EFFECT_CANNOT_TRIGGER)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<=1 return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<=1
......
...@@ -17,7 +17,7 @@ function cm.spfilter(c,e,tp) ...@@ -17,7 +17,7 @@ function cm.spfilter(c,e,tp)
and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP) and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP)
end end
function cm.check(g) function cm.check(g)
return g:GetSum(Card.GetAttack)==1 return g:GetClassCount(Card.GetAttack)==g:GetCount()
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil,e,tp) local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil,e,tp)
......
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