diff options
author | Haru <haru@dotalux.com> | 2015-12-19 22:25:28 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-12-19 22:25:28 +0100 |
commit | e1da188f662d32e2e737beef5aea5b0ca0a586e5 (patch) | |
tree | 8183f2cac9e687b59698659bfaea0e562e288760 /src | |
parent | a782aa1540b63d5fffd55d835f6f30ee0c53d0f1 (diff) | |
download | hercules-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')
-rw-r--r-- | src/map/battle.c | 6 |
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 } |