Core/Conditions: Removed deprecated CONDITION_PHASEMASK and implemented CONDITION_PHASEID