diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-24 18:09:58 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-24 18:09:58 +0000 |
commit | 7319a0b56b0df996b92f85a5ac9a662ea82f73dc (patch) | |
tree | 67aa08830ac3096eacb8b4007a8fdd90e6fd1133 /src/map/skill.c | |
parent | 33cde8cd1511f7ad2677b003e5abb535eb7822cc (diff) | |
download | hercules-7319a0b56b0df996b92f85a5ac9a662ea82f73dc.tar.gz hercules-7319a0b56b0df996b92f85a5ac9a662ea82f73dc.tar.bz2 hercules-7319a0b56b0df996b92f85a5ac9a662ea82f73dc.tar.xz hercules-7319a0b56b0df996b92f85a5ac9a662ea82f73dc.zip |
- The clif_skill_poseffect packet will not be invoked in Snap unless the skill was successful. May fix the client-position lag.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6734 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 31dbd82dc..5a3ec49c0 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -5856,8 +5856,7 @@ int skill_castend_pos2( struct block_list *src, int x,int y,int skillid,int skil sc = NULL; //Unneeded.
if(skillid != WZ_METEOR &&
- skillid != AM_CANNIBALIZE &&
- skillid != AM_SPHEREMINE &&
+ skillid != MO_BODYRELOCATION &&
skillid != CR_CULTIVATION)
clif_skill_poseffect(src,skillid,skilllv,x,y,tick);
@@ -5985,7 +5984,8 @@ int skill_castend_pos2( struct block_list *src, int x,int y,int skillid,int skil case MO_BODYRELOCATION:
if (unit_movepos(src, x, y, 1, 1)) {
- clif_slide(src, src->x, src->y);
+ clif_skill_poseffect(src,skillid,skilllv,src->x,src->y,tick);
+// clif_slide(src, src->x, src->y); //Poseffect is the one that makes the char snap on the client...
if (sd) skill_blockpc_start (sd, MO_EXTREMITYFIST, 2000);
}
break;
@@ -6010,7 +6010,6 @@ int skill_castend_pos2( struct block_list *src, int x,int y,int skillid,int skil }
// To-do: ?「還されるモンスタ?[には?「還したプレ?[ヤ?[の名前が付きます
// (attach name of player?)
- clif_skill_poseffect(src,skillid,skilllv,x,y,tick);
}
break;
case AM_SPHEREMINE: // スフィア?マイン
@@ -6027,7 +6026,6 @@ int skill_castend_pos2( struct block_list *src, int x,int y,int skillid,int skil md->special_state.ai = 2;
md->deletetimer = add_timer (gettick() + skill_get_time(skillid,skilllv), mob_timer_delete, id, 0);
}
- clif_skill_poseffect(src,skillid,skilllv,x,y,tick);
}
break;
|