vjurenka / BWMirror

BWMirror API source files
Other
55 stars 13 forks source link

DamageTypes are broken #35

Open dgant opened 7 years ago

dgant commented 7 years ago

The damageTypes of weapons have different hashcodes and can't be compared to the constant DamageTypes. And trying to invoke toString() on them crashes the JVM.

The unit in these two examples is a Probe, whose ground weapon should have DamageType.Normal.

image image