From e7f58b12218dbfa263e5ef97f8b3eb467b42a8f3 Mon Sep 17 00:00:00 2001 From: Aleos Date: Wed, 2 Feb 2022 21:04:53 -0500 Subject: [PATCH] Removes an extra sanity check for cardfix bonuses (#6582) * Fixes #6579. * Partial revert to ad2660b. * Cardfix bonuses can go above 1000. Thanks to @kaninhot004! --- src/map/battle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/battle.cpp b/src/map/battle.cpp index 337c2b6428..c4b307e812 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -675,7 +675,7 @@ int battle_calc_cardfix(int attack_type, struct block_list *src, struct block_li s_defele = (tsd) ? (enum e_element)status_get_element(src) : ELE_NONE; //Official servers apply the cardfix value on a base of 1000 and round down the reduction/increase -#define APPLY_CARDFIX(damage, fix) { (damage) = (damage) - (int64)(((damage) * (1000 - min(max(0, fix), 1000))) / 1000); } +#define APPLY_CARDFIX(damage, fix) { (damage) = (damage) - (int64)(((damage) * (1000 - max(0, fix))) / 1000); } switch( attack_type ) { case BF_MAGIC: