fix apply_to=other in ability for units with no weapon (#4719)
resolve https://github.com/wesnoth/wesnoth/issues/4718. if other_attack condition for adding of abilitie applied to opponent then abilitie function what for attack to same range what owned by owner of abilitie and weapon like abilities must be applied to all attack matched
This commit is contained in:
parent
c5a1ac03e8
commit
89b237f16c
1 changed files with 1 additions and 1 deletions
|
@ -1205,7 +1205,7 @@ unit_ability_list attack_type::list_ability(const std::string& ability) const
|
|||
abil_list.append(list_leadership(ability, self, other, self_loc_, other_loc_, is_attacker_, shared_from_this(), other_attack_, false));
|
||||
}
|
||||
|
||||
if(other && other_attack_) {
|
||||
if(other) {
|
||||
abil_list.append(list_leadership(ability, other, self, other_loc_, self_loc_, !is_attacker_, other_attack_, shared_from_this(), true));
|
||||
}
|
||||
return abil_list;
|
||||
|
|
Loading…
Add table
Reference in a new issue