Closed calthax closed 9 years ago
So now how do i get it to really bounce?
You would have to, in the uncast function, where it does damage, immediately cast the spell on another target.
How do i limit the number of bounces?
You would have to pass in a number when instantiating the spell to limit how many times it can re-cast itself. probably.
That sounds similar to square one, but it's not equivalent.
Maybe like defining a local variable equivalent to spellPower and decrement it each time the spell bounces and stop bouncing if the variable reaches 0
That's possible. There are plenty of ways to implement it.
How do i declare local variables in Coffeescript
x = 10
Should i declare in cast or uncast
Are you even testing your code? If not, there's no way I can accept this.
Truth is Github terminal is my Achilles Heel it's hard to use
Sorry, but I'm going to close this then. I've simplified the install process as best as I can, so please feel free to submit again later when you've tested your code.
Added 2 new spells too