Deep-copy the base unit's attacks before modifying them, this fixes bug #12778.
This commit is contained in:
parent
23d8eae674
commit
1c2e86d206
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ class HTMLOutput:
|
|||
base_unit = self.wesnoth.get_base_unit(this_unit)
|
||||
attacks = []
|
||||
if base_unit:
|
||||
attacks = self.get_recursive_attacks(base_unit)
|
||||
attacks = copy.deepcopy(self.get_recursive_attacks(base_unit))
|
||||
|
||||
base_attacks_count = len(attacks)
|
||||
for i, attack in enumerate(this_unit.get_all("attack")):
|
||||
|
|
Loading…
Add table
Reference in a new issue