Fix The Great Divide debuffs
This commit is contained in:
parent
8db953dde2
commit
e1df4fe438
1 changed files with 12 additions and 20 deletions
|
|
@ -184,35 +184,27 @@ blind {
|
||||||
pronouns = "he_they",
|
pronouns = "he_they",
|
||||||
disable = function()
|
disable = function()
|
||||||
-- Ensures that this runs after 'set_blind' since it also gets added to queue.
|
-- Ensures that this runs after 'set_blind' since it also gets added to queue.
|
||||||
q(function()
|
q {
|
||||||
local count = #G.discard.cards
|
delay = 0.8,
|
||||||
|
trigger = "after",
|
||||||
if count == 0 then
|
func = function()
|
||||||
return
|
G.FUNCS.draw_from_discard_to_deck()
|
||||||
end
|
end,
|
||||||
|
}
|
||||||
f(G.discard.cards):take(count):each(function(v, i)
|
|
||||||
draw_card(G.discard, G.hand, i / count * 100, "up", false, v, nil, nil, true)
|
|
||||||
end)
|
|
||||||
|
|
||||||
f(G.discard.cards):take(count):each(function(v, i)
|
|
||||||
draw_card(G.hand, G.deck, i / count * 100, "up", false, v)
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
end,
|
end,
|
||||||
set_blind = function()
|
set_blind = function()
|
||||||
-- Allows the background to ease in first before drawing cards.
|
-- Allows the background to ease in first before drawing cards.
|
||||||
q(function()
|
q(function()
|
||||||
local length = (#G.deck.cards - 2) / 2
|
local count = (#G.deck.cards - 2) / 2
|
||||||
|
|
||||||
for i = 0, length do
|
for i = 0, count do
|
||||||
local card = G.deck.cards[#G.deck.cards - i]
|
local card = G.deck.cards[#G.deck.cards - i]
|
||||||
draw_card(G.deck, G.hand, i / length * 100, "down", false, card, nil, nil, true)
|
draw_card(G.deck, G.hand, i / count * 100, "down", false, card, nil, nil, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, length do
|
for i = 0, count do
|
||||||
local card = G.deck.cards[#G.deck.cards - i]
|
local card = G.deck.cards[#G.deck.cards - i]
|
||||||
draw_card(G.hand, G.discard, i / length * 100, "down", false, card, nil, nil, true)
|
draw_card(G.hand, G.discard, i / count * 100, "down", false, card, nil, nil, true)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue