summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 05:02:59 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 05:02:59 +0000
commit74cdd2aabac3b6f74fe84a77301245ffc876db6f (patch)
treec777052a227e39d7abdc28f9a022b08e77a872b2 /src/map/battle.c
parent0c9374f1f6f3d82cfa93a3c305ce5328363d0c28 (diff)
downloadhercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.tar.gz
hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.tar.bz2
hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.tar.xz
hercules-74cdd2aabac3b6f74fe84a77301245ffc876db6f.zip
Fixed bugreport:5650 GN Cart Remodeling weight boost should now be working properly.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16042 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 9ea7f5595..ce75e0446 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -1760,7 +1760,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo
case MC_CARTREVOLUTION:
skillratio += 50;
if(sd && sd->cart_weight)
- skillratio += 100*sd->cart_weight/battle_config.max_cart_weight; // +1% every 1% weight
+ skillratio += 100*sd->cart_weight/sd->cart_weight_max; // +1% every 1% weight
else if (!sd)
skillratio += 100; //Max damage for non players.
break;