i think something in the order of the code is wrong cause sometimes when i block while the enemy is attacking it ignores my shield and i just take the full damage.So what i think happens is in the code the game first gets rid of my shield and THEN the enemy attacks (but this is just a gues