summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-19 22:25:28 +0100
committerHaru <haru@dotalux.com>2015-12-19 22:25:28 +0100
commite1da188f662d32e2e737beef5aea5b0ca0a586e5 (patch)
tree8183f2cac9e687b59698659bfaea0e562e288760 /src/map/battle.c
parenta782aa1540b63d5fffd55d835f6f30ee0c53d0f1 (diff)
downloadhercules-e1da188f662d32e2e737beef5aea5b0ca0a586e5.tar.gz
hercules-e1da188f662d32e2e737beef5aea5b0ca0a586e5.tar.bz2
hercules-e1da188f662d32e2e737beef5aea5b0ca0a586e5.tar.xz
hercules-e1da188f662d32e2e737beef5aea5b0ca0a586e5.zip
Corrected a typo in the Renewal cardfix calculation
- If you name your variabled cardfix_ and cardfix, don't complain if you get confused... - Since 210c963d Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index c28aef820..b19e13438 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1188,9 +1188,9 @@ int64 battle_calc_cardfix(int attack_type, struct block_list *src, struct block_
else if( cardfix != 1000 )
damage = damage * cardfix / 1000;
#else
- if ( (cflag & 1) && cardfix_ != 100 )
- damage += damage * (cardfix - 100) / 100;
- else if ( cardfix != 100 )
+ if ((cflag & 1) && cardfix_ != 100)
+ damage += damage * (cardfix_ - 100) / 100;
+ else if (cardfix != 100)
damage += damage * (cardfix - 100) / 100;
#endif
}