using System.Collections.Generic;
using Wizard.Battle;

public class SkillParameterIsChaosFilter : ISkillCardFilter
{
	private bool _isChaos;

	private NetworkUserInfoData _userInfo;

	public SkillParameterIsChaosFilter(string value)
	{
		_isChaos = value == "true";
		_userInfo = GameMgr.GetIns().GetNetworkUserInfoData();
	}

	public IEnumerable<IReadOnlyBattleCardInfo> Filtering(IEnumerable<IReadOnlyBattleCardInfo> cards, SkillOptionValue option)
	{
		if ((_isChaos && _userInfo.GetSelfChaosId() != -1) || (!_isChaos && _userInfo.GetSelfChaosId() == -1))
		{
			return cards;
		}
		return new List<IReadOnlyBattleCardInfo>();
	}
}
