Made wmlunits operate more like the game. (remove logic the game lacks)
This fixes the "attacks with same name overwrite eachother" bug.
This commit is contained in:
parent
6ef82e96c0
commit
b9f689a117
1 changed files with 1 additions and 6 deletions
|
@ -608,12 +608,7 @@ class HTMLOutput:
|
|||
for i, attack in enumerate(this_unit.get_all("attack")):
|
||||
aid = attack.get_text_val("name")
|
||||
if aid:
|
||||
for already in attacks:
|
||||
if already.get_text_val("name") == aid:
|
||||
copy_attributes(attack, already)
|
||||
break
|
||||
else:
|
||||
attacks.append(attack)
|
||||
attacks.append(attack)
|
||||
else:
|
||||
copy_attributes(attack, attacks[i])
|
||||
return attacks
|
||||
|
|
Loading…
Add table
Reference in a new issue