add "damage" ability in damage calculation window(UI)

In damage calculation window, the "damage" weapons specials were used in calculation but not the abilities equivalent.
This commit is contained in:
newfrenchy83 2020-05-22 13:58:38 +02:00 committed by Gunter Labes
parent c394353d48
commit b4275d9c70

View file

@ -135,7 +135,7 @@ void attack_predictions::set_data(window& window, const combatant_data& attacker
}
// Get damage modifiers.
unit_ability_list dmg_specials = weapon->get_specials("damage");
unit_ability_list dmg_specials = weapon->get_special_ability("damage");
unit_abilities::effect dmg_effect(dmg_specials, weapon->damage(), attacker.stats_.backstab_pos);
// Get the SET damage modifier, if any.