Player skills no longer proc equip break on mobs (#7005)

* Fixes #5906.
* Player skills and items that have the ability to break a target's equipment will no longer "break" a non-player's equipment.
* WS_MELTDOWN (Shattering Strike) is able to bypass the non-player check as it does affect all target types.
* Adds a battle config to toggle the behavior.
Thanks to @Tydus1, @Xelliekins, @Atemo, @Daegaladh, and @Lemongrass3110!
This commit is contained in:
Aleos
2022-06-06 10:42:42 -04:00
committed by GitHub
parent 479954af30
commit 038c1778e1
4 changed files with 15 additions and 0 deletions

View File

@@ -10126,6 +10126,7 @@ static const struct _battle_data {
{ "feature.barter", &battle_config.feature_barter, 1, 0, 1, },
{ "feature.barter_extended", &battle_config.feature_barter_extended, 1, 0, 1, },
{ "break_mob_equip", &battle_config.break_mob_equip, 0, 0, 1, },
#include "../custom/battle_config_init.inc"
};