From a03dddc9382c947ca574298c01e5834d82dbce57 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 31 Jul 2020 23:18:31 -0300 Subject: [TMW2] DEF FIX --- src/map/battle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/battle.c b/src/map/battle.c index 6257e05e3..5286f97a5 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1426,7 +1426,7 @@ static int64 battle_calc_defense(int attack_type, struct block_list *src, struct **/ if( def1 < -399 ) // it stops at -399 - def1 = 399; // in aegis it set to 1 but in our case it may lead to exploitation so limit it to 399 + def1 = -399; // in aegis it set to 1 but in our case it may lead to exploitation so limit it to 399 //return 1; if( flag&2 ) @@ -1481,7 +1481,7 @@ static int64 battle_calc_defense(int attack_type, struct block_list *src, struct * RE MDEF Reduction **/ if( mdef < -99 ) // it stops at -99 - mdef = 99; // in aegis it set to 1 but in our case it may lead to exploitation so limit it to 99 + mdef = -99; // in aegis it set to 1 but in our case it may lead to exploitation so limit it to 99 //return 1; damage = (int)((100.0f - mdef / (mdef + 100.0f) * 90.0f) / 100.0f * damage - mdef2); -- cgit v1.2.3-60-g2f50