Skip to content

Commit dd55946

Browse files
committed
Swap hologram and soul_pos.draw
1 parent 9271036 commit dd55946

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/card_draw.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,12 @@ SMODS.DrawStep {
322322
local scale_mod = 0.07 + 0.02*math.sin(1.8*G.TIMERS.REAL) + 0.00*math.sin((G.TIMERS.REAL - math.floor(G.TIMERS.REAL))*math.pi*14)*(1 - (G.TIMERS.REAL - math.floor(G.TIMERS.REAL)))^3
323323
local rotate_mod = 0.05*math.sin(1.219*G.TIMERS.REAL) + 0.00*math.sin((G.TIMERS.REAL)*math.pi*5)*(1 - (G.TIMERS.REAL - math.floor(G.TIMERS.REAL)))^2
324324

325-
if self.ability.name == 'Hologram' then
325+
if type(self.config.center.soul_pos.draw) == 'function' then
326+
self.config.center.soul_pos.draw(self, scale_mod, rotate_mod)
327+
elseif self.ability.name == 'Hologram' then
326328
self.hover_tilt = self.hover_tilt*1.5
327329
self.children.floating_sprite:draw_shader('hologram', nil, self.ARGS.send_to_shader, nil, self.children.center, 2*scale_mod, 2*rotate_mod)
328330
self.hover_tilt = self.hover_tilt/1.5
329-
elseif type(self.config.center.soul_pos.draw) == 'function' then
330-
self.config.center.soul_pos.draw(self, scale_mod, rotate_mod)
331331
else
332332
self.children.floating_sprite:draw_shader('dissolve',0, nil, nil, self.children.center,scale_mod, rotate_mod,nil, 0.1 + 0.03*math.sin(1.8*G.TIMERS.REAL),nil, 0.6)
333333
self.children.floating_sprite:draw_shader('dissolve', nil, nil, nil, self.children.center, scale_mod, rotate_mod)

0 commit comments

Comments
 (0)