Commit f7bec111 authored by 未闻皂名's avatar 未闻皂名

2022/7/3 bug修复

parent 8467c8f8
Pipeline #14393 passed with stages
in 4 minutes and 16 seconds
......@@ -23,15 +23,15 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.confilter,tp,LOCATION_MZONE,0,1,nil)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,0,LOCATION_MZONE,1,nil) end
local g=Duel.GetMatchingGroup(cm.filter,tp,0,LOCATION_MZONE,nil)
local dam=g:GetSum(Card.GetAttack,nil)
if chk==0 then return dam>0 end
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,dam)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.filter,tp,0,LOCATION_MZONE,nil)
local dam=g:GetSum(Card.GetAttack,nil)
if dam~=0 and Duel.Damage(tp,dam,REASON_EFFECT)~=0 then
if dam>0 and Duel.Damage(tp,dam,REASON_EFFECT)~=0 then
Duel.Destroy(g,REASON_EFFECT)
end
end
\ No newline at end of file
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