add todo
This commit is contained in:
parent
0de2e693ab
commit
8081114ac0
1 changed files with 1 additions and 0 deletions
|
@ -985,6 +985,7 @@ int mouse_handler::show_attack_dialog(const map_location& attacker_loc, const ma
|
|||
std::vector<battle_context> bc_vector;
|
||||
const int best = fill_weapon_choices(bc_vector, attacker, defender);
|
||||
|
||||
//TODO: this "disable" check has no attack context.
|
||||
const bool all_disabled = std::all_of(bc_vector.begin(), bc_vector.end(),
|
||||
[](battle_context& context) { return (*context.get_attacker_stats().weapon).get_special_bool("disable"); }
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue