if (type == 1 && other.type == 0) { with (other) { if (con >= 1) event_user(1); } }