Enum bug?

Hello, i’m working on turn based strategy rpg and when i coded in my enum for some reason it seems to only work on certain units and units that should be doing reduced damage to those strong than them seems to do super effective damage despite the code telling otherwise.