| 1234567891011121314151617181920212223242526272829303132 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System;
- public class CannotIgnoreDigivolutionConditionClass : ICardEffect, ICannotIgnoreDigivolutionConditionEffect
- {
- public void SetUpCannotIgnoreDigivolutionConditionClass(Func<Player, Permanent, CardSource, bool> IgnoreDigivolutionCondition)
- {
- this.IgnoreDigivolutionCondition = IgnoreDigivolutionCondition;
- }
- Func<Player, Permanent, CardSource, bool> IgnoreDigivolutionCondition;
- public bool cannotIgnoreDigivolutionCondition(Player player, Permanent targetPermanent, CardSource cardSource)
- {
- if (player != null && targetPermanent != null && cardSource != null)
- {
- if (targetPermanent.TopCard != null)
- {
- if (IgnoreDigivolutionCondition != null)
- {
- if (IgnoreDigivolutionCondition(player, targetPermanent, cardSource))
- {
- return true;
- }
- }
- }
- }
- return false;
- }
- }
|