Ok, I've checked your spell, and I liked how you solved the integer(Data)
Some minor things easy to solve:
- You use in the tree detection a constant value which should be part of the constant globals, in this line:
- You can make the spell structs private, at the end they shouldn't be accessible to other functions and we ensure they don't mess with other popular knockback structs in other maps.
- You do this calculation:
set twdat.speed = StartCircleSpeed*bj_PI/180.0
set twdat.increament = DecreaseCircleSpeed (level)*bj_PI/180.0
You can replace bj_PI/180.0 by bj_DEGTORAD and 180/3.1415 by bj_RADTODEG
Please fix that and I'll approve this spell.