Okay, so I have a class and in this class I have a method that runs a random boolean generator and I want to make it so that, depending on the value, it does one thing or the other. It's part of the battle class of my console game, Dungeoneer.(Which I will make a thread for soon, I may need help there lol).
Anyhow, here is the current code, and it has a massive error that I can't seem to work around. Basically, I want
to make the method blockCheck be a part of the battle system and essentially it works like this: "if player block true then take no damage, else take random damage(which I'll make shortly).
So, what can I do to make this if statement work without error(aside from actually putting code in it)?