I have a little "problem" with pushback damages!
I made a spell with this description :
Push the enemy 5 cells and closer the enemy is to the wall, the more damages he takes.
with this damage formula :
<damage formula>
move = a.push(b, 5, "normal");
value = ((move * a.level) * 10);
</damage formula>
So if the enemy is pushed 5 cells without hitting a wall, he takes 0 damage, that's perfect.
If the enemy is pushed 4 cells then hit a wall, he will take : 1 * my level * 10
If the enemy is pushed 3 cells then hit a wall, he will take : 2 * my level * 10
If the enemy is pushed 2 cells then hit a wall, he will take : 3 * my level * 10
If the enemy is pushed 1 cells then hit a wall, he will take : 4 * my level * 10
If the enemy is pushed 0 cells then hit a wall, he will take : 5 * my level * 10
But here is the problem : (In this case, he takes as much as he hit the wall with 4 cells instead of 2)
The events that controls the battle are considered like walls!
Is there a way to make theses events not be "walls" or to control the battle without these events? (I want to use all the battle area if possible, so I can not put them "in an wall"