Question about floating damage

(jm) #1

what’s wrong with the codes?

in this picture, when the player attacks the enemy the floating text will appear but it doesn’t deal any damage.

this is the code on player skill (on skill hit)

but when i change the (temporary finalDamage as float to this

now when i play the game, it all works.

so what’s the problem with my first code?

(Ryan) #2

Looks like your sending in a negative number the first time when it doesn’t work and a positive number the second time when it does. :wink:

(Marshall Heffernan) #3

Nice catch @Ryan!
@jape you’re healing the enemy.