Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
(cherry-picked from commit 4725ba9)
  • Loading branch information
gfgtdf authored and Vultraz committed Oct 7, 2018
1 parent 8398cd9 commit 13f244e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mouse_events.cpp
Expand Up @@ -984,6 +984,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"); }
);
Expand Down

0 comments on commit 13f244e

Please sign in to comment.