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