parent
8ecbed0205
commit
1413dfd4f3
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue