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:
Alexander van Gessel 2008-10-01 01:27:06 +01:00
parent 6ef82e96c0
commit b9f689a117

View file

@ -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