Skip to content

Commit

Permalink
add "damage" ability in damage calculation window(UI)
Browse files Browse the repository at this point in the history
In damage calculation window, the "damage" weapons specials were used in calculation but not the abilities equivalent.
  • Loading branch information
newfrenchy83 authored and soliton- committed May 28, 2020
1 parent c394353 commit b4275d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/dialogs/attack_predictions.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit b4275d9

Please sign in to comment.