summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/skill.c4
-rw-r--r--src/map/unit.c5
2 files changed, 2 insertions, 7 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 578b634b5..d1b25b791 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5674,7 +5674,7 @@ int skill_castend_id( int tid, unsigned int tick, int id,int data )
break;
if (ud->walktimer != -1 && ud->skillid != TK_RUN)
- unit_stop_walking(src,0);
+ unit_stop_walking(src,1);
if (ud->skillid == SA_MAGICROD)
ud->canact_tick = tick;
@@ -5787,7 +5787,7 @@ int skill_castend_pos( int tid, unsigned int tick, int id,int data )
if(battle_config.skill_log && battle_config.skill_log&src->type)
ShowInfo("Type %d, ID %d skill castend pos [id =%d, lv=%d, (%d,%d)]\n",
src->type, src->id, ud->skillid, ud->skilllv, ud->skillx, ud->skilly);
- unit_stop_walking(src,0);
+ unit_stop_walking(src,1);
ud->canact_tick = tick + skill_delayfix(src, ud->skillid, ud->skilllv);
unit_set_walkdelay(src, tick, skill_get_walkdelay(ud->skillid, ud->skilllv), 1);
skill_castend_pos2(src,ud->skillx,ud->skilly,ud->skillid,ud->skilllv,tick,0);
diff --git a/src/map/unit.c b/src/map/unit.c
index 1ba8fd92f..84d964fe9 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -680,11 +680,6 @@ int unit_set_walkdelay(struct block_list *bl, unsigned int tick, int delay, int
return 1;
}
-/*==========================================
- * Applies walk delay based on attack type. [Skotlex]
- *------------------------------------------
- */
-
int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int skill_lv, int casttime, int castcancel) {
struct unit_data *ud;
struct status_change *sc;