diff options
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index c76e9dc23..272fc9242 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -725,11 +725,10 @@ int unit_blown(struct block_list* bl, int dx, int dy, int count, int flag) } } } - else - {// could not knockback - count = 0; - } + + count = distance(dx, dy); } + return count; // return amount of knocked back cells } |