From d31790a2e2305fac4acb48a42a7ab2ef69830428 Mon Sep 17 00:00:00 2001 From: malufett Date: Wed, 16 Oct 2013 19:24:38 +0800 Subject: Fixed Bug#7122 -where 'bLongAtkDef' affects magic in RE. Signed-off-by: malufett --- src/map/battle.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-60-g2f50