summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-19 14:38:21 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-19 14:38:21 +0000
commit96e5f7023a5a7e5dca78ccd52002596ecf8a3b42 (patch)
treecd19d44e3cdb45cb51020f44157785d7e6809d74 /src/map/battle.c
parentb5cd6576aff74317d3604368d79ad4b8da8bd347 (diff)
downloadhercules-96e5f7023a5a7e5dca78ccd52002596ecf8a3b42.tar.gz
hercules-96e5f7023a5a7e5dca78ccd52002596ecf8a3b42.tar.bz2
hercules-96e5f7023a5a7e5dca78ccd52002596ecf8a3b42.tar.xz
hercules-96e5f7023a5a7e5dca78ccd52002596ecf8a3b42.zip
Updated Endure, added SC_BLOCKSKILL and SC_SLOWDOWN
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@262 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index d74cc5ed2..ba4ab31a4 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -932,6 +932,8 @@ int battle_get_speed(struct block_list *bl)
//ウィンドウォーク時はLv*2%減算
if(sc_data[SC_WINDWALK].timer!=-1)
speed -= (speed*(sc_data[SC_WINDWALK].val1*2))/100;
+ if(sc_data[SC_SLOWDOWN].timer!=-1)
+ speed = speed*150/100;
}
if(speed < 1) speed = 1;
return speed;