Removes an extra sanity check for cardfix bonuses (#6582)

* Fixes #6579.
* Partial revert to ad2660b.
* Cardfix bonuses can go above 1000.
Thanks to @kaninhot004!
This commit is contained in:
Aleos 2022-02-02 21:04:53 -05:00 committed by GitHub
parent 61d9cb1360
commit e7f58b1221
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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; 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 //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 ) { switch( attack_type ) {
case BF_MAGIC: case BF_MAGIC: