Fix effects being unable to decrease weapon parry/accuracy

fixes #3181
This commit is contained in:
Celtic Minstrel 2018-05-27 10:33:44 -04:00 committed by GitHub
parent 8ecbed0205
commit 1413dfd4f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -302,7 +302,7 @@ bool attack_type::apply_modification(const config& cfg)
}
if(increase_damage.empty() == false) {
damage_ = utils::apply_modifier(damage_, increase_damage, 0);
damage_ = utils::apply_modifier(damage_, increase_damage);
if(damage_ < 0) {
damage_ = 0;
}
@ -332,7 +332,7 @@ bool attack_type::apply_modification(const config& cfg)
}
if(increase_parry.empty() == false) {
parry_ = utils::apply_modifier(parry_, increase_parry, 1);
parry_ = utils::apply_modifier(parry_, increase_parry);
}
if(set_movement.empty() == false) {
@ -340,7 +340,7 @@ bool attack_type::apply_modification(const config& cfg)
}
if(increase_movement.empty() == false) {
movement_used_ = utils::apply_modifier(movement_used_, increase_movement, 1);
movement_used_ = utils::apply_modifier(movement_used_, increase_movement);
}
if(set_attack_weight.empty() == false) {