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

2023/7/5 新增:音痴噪声烦恼

parent 370bda4d
Pipeline #22570 failed with stages
in 64 minutes and 55 seconds
No preview for this file type
......@@ -27,7 +27,9 @@ function cm.filter(c,tp)
return c:GetOwner()==tp
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and eg:IsExists(cm.filter,1,nil,1-tp)
local ph=Duel.GetCurrentPhase()
return Duel.GetTurnPlayer()~=tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)
and eg:IsExists(cm.filter,1,nil,1-tp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
......@@ -36,8 +38,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
RD.Damage(nil,ct*400)
if ev>0 then
if RD.Damage(nil,ct*400)~=0 and ev>0 then
RD.SendOpponentHandToGrave(tp,aux.Stringid(m,1),1,1)
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