mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 14:33:18 +00:00
Attack Predictions: fixed display of dialog for no-attacks-available combatants
This commit is contained in:
parent
faaf311981
commit
80d8b99c04
@ -113,7 +113,13 @@ void attack_predictions::set_data(window& window, const combatant_data& attacker
|
||||
//
|
||||
|
||||
if(!attacker.stats_.weapon) {
|
||||
set_label_helper("attack", _("No usable weapon"));
|
||||
set_label_helper("base_damage", _("No usable weapon"));
|
||||
|
||||
// FIXME: would rather have a list somewhere that I can loop over instead of hardcoding...
|
||||
hide_label_helper("tod_modifier");
|
||||
hide_label_helper("leadership_modifier");
|
||||
hide_label_helper("slowed_modifier");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user