I am trying to cancel all damage from hostile mobs when a variable for a player is true. Currently, It can cancel only attacks. When I tried to put the other types of damage