Пример #1
0
 IEnumerator Desenganged(MoveCardAction moveCardAction)
 {
     foreach (CardComponent enemy in moveCardAction.ThisCard.Owner.Threat.ListCards.FindAll(c => c.CardType == CardType.Enemy))
     {
         yield return(new MoveCardAction(enemy, moveCardAction.OldZone, isFast: true).RunNow());
     }
     yield return(new WaitWhile(() => DOTween.IsTweening("MoveCard")));
 }
Пример #2
0
 bool MoveIntoLocation(MoveCardAction moveCardAction)
 {
     if (moveCardAction.ThisCard.CardType != CardType.PlayCard)
     {
         return(false);
     }
     if (moveCardAction.Zone != ThisCard.MyOwnZone)
     {
         return(false);
     }
     return(true);
 }
Пример #3
0
 bool CheckInHand(MoveCardAction moveCard)
 {
     if (!GameControl.GameIsStarted)
     {
         return(false);
     }
     if (moveCard.ThisCard.CurrentZone.ZoneType != Zones.Hand)
     {
         return(false);
     }
     return(true);
 }
 bool CheckSlots(MoveCardAction moveCardAction)
 {
     if (moveCardAction.ThisCard.Info.Slot == null)
     {
         return(false);
     }
     if (moveCardAction.Zone != ThisCard.Owner.Assets && moveCardAction.Zone != ThisCard.Owner.Threat)
     {
         return(false);
     }
     return(true);
 }
Пример #5
0
 bool ReactionEffect(MoveCardAction moveCardAction)
 {
     if (moveCardAction.ThisCard != ThisCard)
     {
         return(false);
     }
     if (moveCardAction.Zone != ThisCard.VisualOwner.Assets)
     {
         return(false);
     }
     return(true);
 }
Пример #6
0
 bool CheckRevealLocation(MoveCardAction moveCardAction)
 {
     if (IsRevealed)
     {
         return(false);
     }
     if (moveCardAction.ThisCard.CardType != CardType.PlayCard)
     {
         return(false);
     }
     if (moveCardAction.Zone != ThisCard.MyOwnZone)
     {
         return(false);
     }
     return(true);
 }
Пример #7
0
 bool CheckingToDiscard(MoveCardAction moveCardAction)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (moveCardAction.ThisCard.CardType != CardType.PlayCard)
     {
         return(false);
     }
     if (moveCardAction.ThisCard.CurrentZone != ThisCard.CurrentZone)
     {
         return(false);
     }
     return(true);
 }
Пример #8
0
 bool OnMoveEnganged(MoveCardAction moveCardAction)
 {
     if (moveCardAction.ThisCard != ThisCard && moveCardAction.ThisCard.CardType != CardType.PlayCard)
     {
         return(false);
     }
     if (ThisCard.IsExausted)
     {
         return(false);
     }
     if (IsEnganged)
     {
         return(false);
     }
     if (!GameControl.AllInvestigatorsInGame.Exists(c => c.PlayCard.CurrentZone == ThisCard.CurrentZone))
     {
         return(false);
     }
     return(true);
 }
Пример #9
0
 bool EnemyEnganged(MoveCardAction moveCardAction)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (moveCardAction.ThisCard.CardType != CardType.PlayCard)
     {
         return(false);
     }
     if (moveCardAction.Zone != ThisCard.CurrentZone)
     {
         return(false);
     }
     if (!moveCardAction.ThisCard.Owner.IsEnganged)
     {
         return(false);
     }
     return(true);
 }