Commit 10e58aa6 authored by 未闻皂名's avatar 未闻皂名

2024/7/20 bug修复

parent 5bb5d179
Pipeline #28518 passed with stages
in 6 minutes and 42 seconds
...@@ -42,8 +42,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,8 +42,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if dam==0 then return end if dam==0 then return end
Duel.BreakEffect() Duel.BreakEffect()
local atk=Duel.Damage(1-tp,dam,REASON_EFFECT) local atk=Duel.Damage(1-tp,dam,REASON_EFFECT)
if atk~=0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) if atk~=0 and g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
g:ForEach(function(tc) g:ForEach(function(tc)
RD.AttachAtkDef(e,tc,-atk,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) RD.AttachAtkDef(e,tc,-atk,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
end) end)
......
...@@ -42,8 +42,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,8 +42,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if dam==0 then return end if dam==0 then return end
Duel.BreakEffect() Duel.BreakEffect()
local atk=Duel.Damage(1-tp,dam,REASON_EFFECT) local atk=Duel.Damage(1-tp,dam,REASON_EFFECT)
if atk~=0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) if atk~=0 and g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
g:ForEach(function(tc) g:ForEach(function(tc)
RD.AttachAtkDef(e,tc,-atk,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) RD.AttachAtkDef(e,tc,-atk,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
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