I was hoping somebody could help me out. I'm trying to make my wind spell either damage or heal depending on what is being targeted. So far I have this for my damage formula: if (b.isActor()) {b.gainHp (a.mat * 6)} else {a.mat * 6 - b.mdf * 4}.
So far if I target the enemy with the skill it will damage them, but when I target an ally the game crashes and says, Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': float parameter 3 is nonfinite.
Any help will be greatly appreciated.
So far if I target the enemy with the skill it will damage them, but when I target an ally the game crashes and says, Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': float parameter 3 is nonfinite.
Any help will be greatly appreciated.