diff options
author | protimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-20 06:13:19 +0000 |
---|---|---|
committer | protimus <protimus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-20 06:13:19 +0000 |
commit | c18b1d1cf75c9bbb2d6927c53ef291bdd867ed1f (patch) | |
tree | dae9eb8ce267bf61dff00e3b5d92fe0bbe60b178 /src/map/unit.c | |
parent | 4aea4bbffef37d1a28855ac8ba413098deaf6bce (diff) | |
download | hercules-c18b1d1cf75c9bbb2d6927c53ef291bdd867ed1f.tar.gz hercules-c18b1d1cf75c9bbb2d6927c53ef291bdd867ed1f.tar.bz2 hercules-c18b1d1cf75c9bbb2d6927c53ef291bdd867ed1f.tar.xz hercules-c18b1d1cf75c9bbb2d6927c53ef291bdd867ed1f.zip |
* Fixed invalid state running of TK_JUMPKICK (Flying Kick).
- This was causing wrong damages when use the ability with 1 cell difference of your target.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15176 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 80dcc8e55..cf370676c 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -462,7 +462,7 @@ int unit_run(struct block_list *bl) to_y += dir_y; } - if(to_x == bl->x && to_y == bl->y) { + if(to_x == bl->x && to_y == bl->y || (to_x == (bl->x+1) || to_y == (bl->y+1)) || (to_x == (bl->x-1) || to_y == (bl->y-1))) { //If you can't run forward, you must be next to a wall, so bounce back. [Skotlex] clif_status_change(bl, SI_BUMP, 1, 0, 0, 0, 0); |