summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-10-16 19:24:38 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2013-10-16 19:24:38 +0800
commitd31790a2e2305fac4acb48a42a7ab2ef69830428 (patch)
tree4cc0ef543f59c4c0053b2fc80e86bd9373726a69 /src/map
parent9fdcce3c9b2398487c17a6fe3fef60229ef0ef86 (diff)
downloadhercules-d31790a2e2305fac4acb48a42a7ab2ef69830428.tar.gz
hercules-d31790a2e2305fac4acb48a42a7ab2ef69830428.tar.bz2
hercules-d31790a2e2305fac4acb48a42a7ab2ef69830428.tar.xz
hercules-d31790a2e2305fac4acb48a42a7ab2ef69830428.zip
Fixed Bug#7122
-where 'bLongAtkDef' affects magic in RE. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 1c736d9b7..fb950860e 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -944,11 +944,13 @@ int64 battle_calc_cardfix(int attack_type, struct block_list *src, struct block_
break;
}
}
+#ifndef RENEWAL
//It was discovered that ranged defense also counts vs magic! [Skotlex]
if ( wflag&BF_SHORT )
cardfix = cardfix * ( 100 - tsd->bonus.near_attack_def_rate ) / 100;
else
cardfix = cardfix * ( 100 - tsd->bonus.long_attack_def_rate ) / 100;
+#endif
cardfix = cardfix * ( 100 - tsd->bonus.magic_def_rate ) / 100;