|
@@ -5188,6 +5188,9 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
|
|
|
* RE MDEF Reduction
|
|
|
* Damage = Magic Attack * (1000+eMDEF)/(1000+eMDEF) - sMDEF
|
|
|
**/
|
|
|
+ if (mdef < -100)
|
|
|
+ mdef = -99; // Avoid divide by 0
|
|
|
+
|
|
|
ad.damage = ad.damage * (1000 + mdef) / (1000 + mdef * 10) - mdef2;
|
|
|
#else
|
|
|
if(battle_config.magic_defense_type)
|
|
@@ -7063,6 +7066,7 @@ static const struct _battle_data {
|
|
|
{ "item_enabled_npc", &battle_config.item_enabled_npc, 1, 0, 1, },
|
|
|
{ "item_flooritem_check", &battle_config.item_onfloor, 1, 0, 1, },
|
|
|
{ "bowling_bash_area", &battle_config.bowling_bash_area, 0, 0, 20, },
|
|
|
+ { "drop_rateincrease", &battle_config.drop_rateincrease, 0, 0, 1, },
|
|
|
};
|
|
|
#ifndef STATS_OPT_OUT
|
|
|
/**
|