Skip to content

Commit 750884e

Browse files
Source and Typhoon animation fixes
- Fixed buggy animation when using Source or Typhoon
1 parent d55d040 commit 750884e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

items/code.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4669,14 +4669,15 @@ local source = {
46694669
local cards = Cryptid.get_highlighted_cards({ G.hand }, card, 1, card.ability.max_highlighted)
46704670
return #cards > 0 and #cards <= to_number(card.ability.max_highlighted)
46714671
end,
4672-
use = function(self, card, area, copier) --Good enough
4672+
use = function(self, card, area, copier)
4673+
local used_consumable = copier or card
46734674
local cards = Cryptid.get_highlighted_cards({ G.hand }, {}, 1, 1)
46744675
for i = 1, #cards do
46754676
local highlighted = cards[i]
46764677
G.E_MANAGER:add_event(Event({
46774678
func = function()
46784679
play_sound("tarot1")
4679-
highlighted:juice_up(0.3, 0.5)
4680+
used_consumable:juice_up(0.3, 0.5)
46804681
return true
46814682
end,
46824683
}))
@@ -4685,7 +4686,7 @@ local source = {
46854686
delay = 0.1,
46864687
func = function()
46874688
if highlighted then
4688-
highlighted:set_seal("cry_green")
4689+
highlighted:set_seal("cry_green", nil, true)
46894690
end
46904691
return true
46914692
end,

items/spectral.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ local typhoon = {
11761176
cost = 4,
11771177
atlas = "atlasnotjokers",
11781178
pos = { x = 0, y = 4 },
1179-
use = function(self, card, area, copier) --Good enough
1179+
use = function(self, card, area, copier)
11801180
local used_consumable = copier or card
11811181
check_for_unlock({ cry_used_consumable = "c_cry_typhoon" })
11821182
local cards = Cryptid.get_highlighted_cards({ G.hand }, card, 1, card.ability.max_highlighted)
@@ -1185,7 +1185,7 @@ local typhoon = {
11851185
G.E_MANAGER:add_event(Event({
11861186
func = function()
11871187
play_sound("tarot1")
1188-
highlighted:juice_up(0.3, 0.5)
1188+
used_consumable:juice_up(0.3, 0.5)
11891189
return true
11901190
end,
11911191
}))
@@ -1194,7 +1194,7 @@ local typhoon = {
11941194
delay = 0.1,
11951195
func = function()
11961196
if highlighted then
1197-
highlighted:set_seal("cry_azure")
1197+
highlighted:set_seal("cry_azure", nil, true)
11981198
end
11991199
return true
12001200
end,

0 commit comments

Comments
 (0)