summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 05:01:15 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-01 05:01:15 +0000
commitb8b2214648b6408c15cd9018a05a6dc63de45535 (patch)
tree3846be19a7c8632ac81a426003a408b226673aec /src/map/skill.c
parentb571f42591a62f67623f7e419353196b79125860 (diff)
downloadhercules-b8b2214648b6408c15cd9018a05a6dc63de45535.tar.gz
hercules-b8b2214648b6408c15cd9018a05a6dc63de45535.tar.bz2
hercules-b8b2214648b6408c15cd9018a05a6dc63de45535.tar.xz
hercules-b8b2214648b6408c15cd9018a05a6dc63de45535.zip
- Skills with the move_enable state won't get the walkdelay increased on a skill-cast.
- Changed TK_RUN's state from none to move_enable. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6425 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 302505997..ac0a64acf 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5751,7 +5751,9 @@ int skill_castend_id( int tid, unsigned int tick, int id,int data )
ud->canact_tick = tick;
else
ud->canact_tick = tick + skill_delayfix(src, ud->skillid, ud->skilllv);
- unit_set_walkdelay(src, tick, battle_config.default_skill_delay+skill_get_walkdelay(ud->skillid, ud->skilllv), 1);
+
+ if (skill_get_state(ud->skillid) != ST_MOVE_ENABLE)
+ unit_set_walkdelay(src, tick, battle_config.default_skill_delay+skill_get_walkdelay(ud->skillid, ud->skilllv), 1);
if(battle_config.skill_log && battle_config.skill_log&src->type)
ShowInfo("Type %d, ID %d skill castend id [id =%d, lv=%d, target ID %d)\n",