summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 19:03:46 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 19:03:46 +0000
commitc08b660041e4a6b2f78715c3f50e6b64619d3ccd (patch)
tree9b5237fe457d261fcb16c501be19f9c470ca900d /src/map/skill.c
parentf722ebf848436d298e2eac8f6b889d51678be52c (diff)
downloadhercules-c08b660041e4a6b2f78715c3f50e6b64619d3ccd.tar.gz
hercules-c08b660041e4a6b2f78715c3f50e6b64619d3ccd.tar.bz2
hercules-c08b660041e4a6b2f78715c3f50e6b64619d3ccd.tar.xz
hercules-c08b660041e4a6b2f78715c3f50e6b64619d3ccd.zip
- Changed checks of item's identify field from 0/1 to 0/non-zero
- Corrected TK_JUMPKICK to place the caster on the tile next to the target rather than on top of it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6382 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 5034febed..49b65f2cc 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2561,12 +2561,23 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl,int s
BF_WEAPON, src, src, skillid, skilllv, tick, flag, BCT_ENEMY);
break;
case TK_JUMPKICK:
+ {
+ short x, y;
+ x = bl->x;
+ y = bl->y;
if (!unit_can_move(src))
break;
+ if (src->x < bl->x) x--;
+ else if (src->x > bl->x) x++;
+ if (src->y < bl->y) y--;
+ else if (src->y > bl->y) y++;
+ if (map_getcell(bl->m, x, y, CELL_CHKNOPASS))
+ { x = bl->x; y = bl->y; }
skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag);
- if (unit_movepos(src, bl->x, bl->y, 0, 0))
- clif_slide(src,bl->x,bl->y);
+ if (unit_movepos(src, x, y, 0, 0))
+ clif_slide(src,src->x,src->y);
break;
+ }
case ASC_BREAKER: /* ソウルブレ?カ? */ // [DracoRPG]
// Separate weapon and magic attacks
skill_attack(BF_WEAPON,src,src,bl,skillid,skilllv,tick,flag);