(self)
| 29 | return Unit(int(units), int(hp), int(dmg), dmgtype, int(initiative), weaknesses, immunities) |
| 30 | |
| 31 | def effective_power(self) -> int: |
| 32 | return self.units * self.dmg |
| 33 | |
| 34 | def dmg_against(self, u: 'Unit') -> int: |
| 35 | if self.dmgtype in u.immunities: |