summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-15 16:19:07 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-15 16:19:07 +0000
commit4e003aea5ffaa764bf0e40a63ea314c56903fda0 (patch)
tree7fe77da393c7b3d1884ab6e127fa0a0eea0138e7 /src/map/battle.c
parentb82433d5426042687173da4339f83379fb9f7106 (diff)
downloadhercules-4e003aea5ffaa764bf0e40a63ea314c56903fda0.tar.gz
hercules-4e003aea5ffaa764bf0e40a63ea314c56903fda0.tar.bz2
hercules-4e003aea5ffaa764bf0e40a63ea314c56903fda0.tar.xz
hercules-4e003aea5ffaa764bf0e40a63ea314c56903fda0.zip
More compile cleanups
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@574 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 8892104b9..34c9d5ebb 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1578,10 +1578,11 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,i
if(sc_data[SC_AUTOGUARD].timer != -1 && damage > 0 && flag&BF_WEAPON) {
if(rand()%100 < sc_data[SC_AUTOGUARD].val2) {
+ int delay;
+
damage = 0;
clif_skill_nodamage(bl,bl,CR_AUTOGUARD,sc_data[SC_AUTOGUARD].val1,1);
// different delay depending on skill level [celest]
- int delay;
if (sc_data[SC_AUTOGUARD].val1 <= 5)
delay = 300;
else if (sc_data[SC_AUTOGUARD].val1 > 5 && sc_data[SC_AUTOGUARD].val1 <= 9)