namespace Wizard;

public class CompetitionBattleDoMatchingTask : DoMatchingBase
{
	public CompetitionBattleDoMatchingTask(int deckNo, int needInit, int log)
	{
		base.type = (Data.ArenaData.CompetitionData.IsRankMatching ? ApiType.Type.CompetitionBattleDoMatchingRankMatch : ApiType.Type.CompetitionBattleDoMatching);
		base.SetParameter(deckNo, needInit, log);
	}

	protected override int Parse()
	{
		int num = base.Parse();
		if (num != 1)
		{
			return num;
		}
		SettingDoMatchingData();
		if (Data.DoMatchingDetail.data.matchingState == 3012)
		{
			Data.ArenaData.CompetitionData.IsRankMatching = true;
		}
		return num;
	}
}
