mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 02:22:02 +00:00
Fix error
This commit is contained in:
parent
6d7734230b
commit
6e9cc7431e
@ -656,7 +656,7 @@ bool attack_type::special_active(const config& cfg,bool self,bool report) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(cfg.child("filter_opponent")->child("filter_weapon") != NULL) {
|
if(cfg.child("filter_opponent")->child("filter_weapon") != NULL) {
|
||||||
if(!other_attack_ || other_attack_->matches_filter(*cfg.child("filter_opponent")->child("filter_weapon"),0,true)) {
|
if(!other_attack_ || !other_attack_->matches_filter(*cfg.child("filter_opponent")->child("filter_weapon"),0,true)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user