Skip to content

Commit 82675e8

Browse files
fix monster again
why is this so finicky lol this should be the last time this should need to be fixed i think anyways
1 parent 37759e2 commit 82675e8

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

items/m.lua

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,10 +1883,20 @@ local longboi = {
18831883
end
18841884
end,
18851885
set_ability = function(self, card, initial, delay_sprites)
1886-
card.ability.extra.monster = lenient_bignum(G.GAME and G.GAME.monstermult or 1)
1887-
if to_big(card.ability.extra.monster) >= to_big(1234567654321) then
1886+
local aaa = lenient_bignum(G.GAME and G.GAME.monstermult or 1)
1887+
if (Cryptid.safe_get(card, "area", "config", "type") or "") == "title" then
1888+
card.ability.extra.monster = aaa
1889+
else
1890+
G.E_MANAGER:add_event(Event({
1891+
func = function()
1892+
card.ability.extra.monster = aaa
1893+
return true
1894+
end,
1895+
}))
1896+
end
1897+
if to_big(aaa) >= to_big(1234567654321) then
18881898
card.children.center:set_sprite_pos({ x = 7, y = 5 })
1889-
elseif to_big(card.ability.extra.monster) >= to_big(12321) then
1899+
elseif to_big(aaa) >= to_big(12321) then
18901900
card.children.center:set_sprite_pos({ x = 7, y = 6 })
18911901
end
18921902
end,

0 commit comments

Comments
 (0)