Commit 472f0f75 authored by 未闻皂名's avatar 未闻皂名

2023/12/19 bug修复

parent 6436895a
Pipeline #24459 passed with stages
in 16 minutes and 4 seconds
No preview for this file type
......@@ -121,21 +121,15 @@ end
-- 返回卡组并排序
function RushDuel.SendToDeckSort(target, sequence, reason, sort_player, target_player)
local g = RushDuel.ToMaximunGroup(target)
if g:GetCount() > 1 and sequence == SEQ_DECKBOTTOM then
Duel.SendtoDeck(g, nil, SEQ_DECKTOP, reason)
local ct = 0
if sequence == SEQ_DECKTOP then
ct = aux.PlaceCardsOnDeckTop(sort_player, g, reason)
elseif sequence == SEQ_DECKBOTTOM then
ct = aux.PlaceCardsOnDeckBottom(sort_player, g, reason)
else
Duel.SendtoDeck(g, nil, sequence, reason)
ct = Duel.SendtoDeck(target, nil, sequence, reason)
end
local og = Duel.GetOperatedGroup()
local ct = og:FilterCount(Card.IsLocation, nil, LOCATION_DECK)
if sequence == SEQ_DECKTOP and ct > 1 then
Duel.SortDecktop(sort_player, target_player, ct)
elseif sequence == SEQ_DECKBOTTOM then
if ct > 1 then
Duel.SortDecktop(sort_player, target_player, ct)
end
RushDuel.SendDeckTopToBottom(target_player, ct)
end
return og, ct
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