Skip to content

Commit

Permalink
use special_matches_filter function for overwrite_specials
Browse files Browse the repository at this point in the history
  • Loading branch information
newfrenchy83 committed Oct 10, 2023
1 parent 6a8fbea commit 8ffc4a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/units/abilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1413,9 +1413,7 @@ bool attack_type::overwrite_special_checking(unit_ability_list& overwriters, con
if(overwrite_specials){
auto overwrite_filter = (*overwrite_specials).optional_child("filter_specials");
if(overwrite_filter && is_overwritable && one_side_overwritable){
if(self_){
special_matches = (*self_).ability_matches_filter(cfg, tag_name, *overwrite_filter);
}
special_matches = special_matches_filter(cfg, tag_name, *overwrite_filter);
}
}

Expand Down

0 comments on commit 8ffc4a9

Please sign in to comment.