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) ...@@ -25,7 +25,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttackTarget() 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() Duel.BreakEffect()
if RD.ChangePosition(tc)~=0 then if RD.ChangePosition(tc)~=0 then
local dam=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)*200 local dam=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)*200
......
...@@ -30,10 +30,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,10 +30,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local draw=false local draw=false
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoGrave(sg,REASON_EFFECT+REASON_REVEAL) if Duel.SendtoGrave(sg,REASON_EFFECT+REASON_REVEAL)~=0 then
g:Sub(sg) g:Sub(sg)
local og=Duel.GetOperatedGroup() local og=Duel.GetOperatedGroup()
draw=og:FilterCount(Card.IsLocation,nil,LOCATION_GRAVE)==4 draw=og:FilterCount(Card.IsLocation,nil,LOCATION_GRAVE)==4
end
end end
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(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