Commit 82879d14 authored by 未闻皂名's avatar 未闻皂名

2023/10/7 bug修复

parent d26ed2df
Pipeline #23689 passed with stages
in 9 minutes and 35 seconds
No preview for this file type
......@@ -25,7 +25,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttackTarget()
if Duel.NegateAttack() and tc and RD.IsCanChangePosition(tc) and Duel.SelectEffectYesNo(tp,aux.Stringid(m,1)) then
if Duel.NegateAttack() and tc and RD.IsCanChangePosition(tc) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.BreakEffect()
if RD.ChangePosition(tc)~=0 then
local dam=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)*200
......
......@@ -30,11 +30,12 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local draw=false
if sg:GetCount()>0 then
Duel.DisableShuffleCheck()
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_REVEAL)
if Duel.SendtoGrave(sg,REASON_EFFECT+REASON_REVEAL)~=0 then
g:Sub(sg)
local og=Duel.GetOperatedGroup()
draw=og:FilterCount(Card.IsLocation,nil,LOCATION_GRAVE)==4
end
end
if g:GetCount()>0 then
Duel.ShuffleDeck(tp)
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