From e1da188f662d32e2e737beef5aea5b0ca0a586e5 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 19 Dec 2015 22:25:28 +0100 Subject: 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 --- src/map/battle.c | 6 +++--- 1 file 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 } -- cgit v1.2.3-60-g2f50