Пример #1
0
 bool CheckActiveEffect(InvestigatorTurn investigatorTurn)
 {
     if (ThisCard.CurrentZone != investigatorTurn.ActiveInvestigator.Assets)
     {
         return(false);
     }
     return(true);
 }
Пример #2
0
 protected virtual bool CheckPlayCardFromHand(InvestigatorTurn investigatorTurn)
 {
     if (ThisCard.CurrentZone != investigatorTurn.ActiveInvestigator.Hand)
     {
         return(false);
     }
     return(true);
 }
Пример #3
0
 bool CanBeInvestigated(InvestigatorTurn investigatorTurn)
 {
     if (!ThisCard.MyOwnZone.ListCards.Contains(investigatorTurn.ActiveInvestigator.PlayCard))
     {
         return(false);
     }
     return(true);
 }
Пример #4
0
 bool CheckCanBeEvade(InvestigatorTurn investigatorTurn)
 {
     if (InvestigatorEnganged != investigatorTurn.ActiveInvestigator)
     {
         return(false);
     }
     return(true);
 }
Пример #5
0
 bool CheckCanBeAttacked(InvestigatorTurn investigatorTurn)
 {
     if (CurrentLocation != investigatorTurn.ActiveInvestigator.CurrentLocation)
     {
         return(false);
     }
     return(true);
 }
Пример #6
0
 bool CheckActiveEffect(InvestigatorTurn investigatorTurn)
 {
     if (ThisCard.CurrentZone != investigatorTurn.ActiveInvestigator.Assets)
     {
         return(false);
     }
     if (ThisCard.ResourcesToken.Amount < 1)
     {
         return(false);
     }
     return(true);
 }
Пример #7
0
 bool CheckCanBeEngangedByInvestigator(InvestigatorTurn investigatorTurn)
 {
     if (CurrentLocation != investigatorTurn.ActiveInvestigator.CurrentLocation)
     {
         return(false);
     }
     if (InvestigatorEnganged == investigatorTurn.ActiveInvestigator)
     {
         return(false);
     }
     return(true);
 }
Пример #8
0
 bool CheckToParley(InvestigatorTurn investigatorTurn)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (((CardEnemy)ThisCard.CardLogic).CurrentLocation != investigatorTurn.ActiveInvestigator.CurrentLocation)
     {
         return(false);
     }
     return(true);
 }
Пример #9
0
 protected virtual bool PlayingCard(InvestigatorTurn investigatorturn)
 {
     if (GameControl.ActiveInvestigator != ThisCard.VisualOwner)
     {
         return(false);
     }
     if (!CheckPlayedFromHand())
     {
         return(false);
     }
     return(true);
 }
Пример #10
0
 bool CheckPlayCardInGame(InvestigatorTurn investigatorTurn)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (ThisCard.VisualOwner != GameControl.ActiveInvestigator)
     {
         return(false);
     }
     return(true);
 }
Пример #11
0
 bool Discard(InvestigatorTurn investigatorTurn)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (Investigator.CurrentLocation != investigatorTurn.ActiveInvestigator.CurrentLocation)
     {
         return(false);
     }
     return(true);
 }
Пример #12
0
 /*****************************************************************************************/
 protected override void BuildingCardEffect(InvestigatorTurn investigatorTurn)
 {
     base.BuildingCardEffect(investigatorTurn);
     throwAttack = new CardEffect(
         card: ThisCard,
         effect: ThrowThisWeapon,
         animationEffect: ThrowFightAnimation,
         payEffect: PayThrowEffect,
         cancelEffect: CancelThrowEffect,
         type: EffectType.Activate | EffectType.Fight,
         name: "Lanzar " + ThisCard.Info.Name,
         actionCost: 1,
         investigatorImageCardInfoOwner: ThisCard.VisualOwner);
     investigatorTurn.CardEffects.Add(throwAttack);
 }
Пример #13
0
 protected virtual void BuildingCardEffect(InvestigatorTurn investigatorTurn)
 {
     weaponCardEffect = new CardEffect(
         card: ThisCard,
         effect: FightWithThisWeapon,
         payEffect: PayCostEffect,
         animationEffect: FightEffectAnimation2,
         cancelEffect: CancelCardEffect,
         type: EffectType.Activate | EffectType.Fight,
         name: "Atacar con " + ThisCard.Info.Name,
         actionCost: ActionsCost,
         investigatorImageCardInfoOwner: ThisCard.VisualOwner
         );
     investigatorTurn.CardEffects.Add(weaponCardEffect);
 }
Пример #14
0
 bool CheckPlayCardInGame(InvestigatorTurn investigatorTurn)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (ThisCard.VisualOwner != investigatorTurn.ActiveInvestigator)
     {
         return(false);
     }
     if (!ThisCard.VisualOwner.Assets.ListCards.Exists(c => c.CardType == CardType.Asset && c.KeyWords.Contains("Spell")))
     {
         return(false);
     }
     return(true);
 }
Пример #15
0
 protected override bool PlayingCard(InvestigatorTurn investigatorturn)
 {
     if (!CheckPlayedFromHand())
     {
         return(false);
     }
     if (GameControl.ActiveInvestigator != ThisCard.VisualOwner)
     {
         return(false);
     }
     if (ThisCard.VisualOwner.AllEnemiesInMyLocation.FindAll(c => ((CardEnemy)c.CardLogic).CanBeEvaded).Count < 1)
     {
         return(false);
     }
     return(true);
 }
Пример #16
0
 bool CheckInvestigate(InvestigatorTurn investigatorTurn)
 {
     if (ThisCard.CurrentZone != investigatorTurn.ActiveInvestigator.Assets)
     {
         return(false);
     }
     if (investigatorTurn.ActiveInvestigator != ThisCard.VisualOwner)
     {
         return(false);
     }
     if (ThisCard.ResourcesToken.Amount < 1)
     {
         return(false);
     }
     return(true);
 }
Пример #17
0
 bool CanTakeHorror(InvestigatorTurn investigatorTurn)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (ThisCard.VisualOwner.CurrentLocation != investigatorTurn.ActiveInvestigator.CurrentLocation)
     {
         return(false);
     }
     if (ThisCard.SanityToken.Amount < 1)
     {
         return(false);
     }
     return(true);
 }
Пример #18
0
 protected override bool PlayingCard(InvestigatorTurn investigatorturn)
 {
     if (!CheckPlayedFromHand())
     {
         return(false);
     }
     if (investigatorturn.ActiveInvestigator != ThisCard.VisualOwner)
     {
         return(false);
     }
     if (ThisCard.VisualOwner.AllEnemiesInMyLocation.Count < 1)
     {
         return(false);
     }
     return(true);
 }
Пример #19
0
 bool CheckFightWithThisWeapon(InvestigatorTurn investigatorTurn)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (investigatorTurn.ActiveInvestigator != ThisCard.VisualOwner)
     {
         return(false);
     }
     if (FightWithThisEnemies.Count < 1)
     {
         return(false);
     }
     if (NeedResources && ThisCard.ResourcesToken.Amount < 1)
     {
         return(false);
     }
     return(true);
 }
Пример #20
0
 bool CanParlayWithLita(InvestigatorTurn investigatorTurn)
 {
     if (!ThisCard.IsInPlay)
     {
         return(false);
     }
     if (!IsRevealed)
     {
         return(false);
     }
     if (Lita.Owner != null)
     {
         return(false);
     }
     if (Lita.CurrentZone != investigatorTurn.ActiveInvestigator.PlayCard.CurrentZone)
     {
         return(false);
     }
     return(true);
 }