diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-18 19:59:36 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-18 19:59:36 +0000 |
commit | 9fa4acce4a3fd134993a5cfe18506392dbfa5555 (patch) | |
tree | c0e1375d7db8c5bdca703b63298fb56805e3b2e4 /src/map/battle.c | |
parent | cd45c30ab2dcc44bfbfac283d15bb09b3d4644bc (diff) | |
download | hercules-9fa4acce4a3fd134993a5cfe18506392dbfa5555.tar.gz hercules-9fa4acce4a3fd134993a5cfe18506392dbfa5555.tar.bz2 hercules-9fa4acce4a3fd134993a5cfe18506392dbfa5555.tar.xz hercules-9fa4acce4a3fd134993a5cfe18506392dbfa5555.zip |
Follow up r16427 fixed issue with parenthesis logic and a battle.c warning on missing parenthesis
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16444 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index ee7cd6869..35e2fc710 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2741,7 +2741,7 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src,struct blo if(sc->data[SC_GT_CHANGE] && sc->data[SC_GT_CHANGE]->val2){ struct block_list *bl; // ATK increase: ATK [{(Caster’s DEX / 4) + (Caster’s STR / 2)} x Skill Level / 5] - if( bl = map_id2bl(sc->data[SC_GT_CHANGE]->val2) ) + if( (bl = map_id2bl(sc->data[SC_GT_CHANGE]->val2)) ) ATK_ADD( ( status_get_dex(bl)/4 + status_get_str(bl)/2 ) * sc->data[SC_GT_CHANGE]->val1 / 5 ); } } |