public static void CheckDistance(CharacterActions characterActions) { string screenDistance = characterActions.GetPositionBetweenCharacters(); if (screenDistance == "In-close" || screenDistance == "Poke-range") { conditions |= AIConditions.distance; } else { conditions &= ~AIConditions.distance; } }