コード例 #1
0
 bool CheckActAdvance(DefeatCardAction die)
 {
     if (this != GameControl.CurrentAct)
     {
         return(false);
     }
     if (die.CardToDefeat != GhoulPriest.ThisCard)
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
 bool PlayCard(DefeatCardAction dieAction)
 {
     if (!CheckPlayedFromHand())
     {
         return(false);
     }
     if (GameControl.ActiveInvestigator != ThisCard.VisualOwner)
     {
         return(false);
     }
     if (dieAction.CardToDefeat.CardType != CardType.Enemy)
     {
         return(false);
     }
     if (ThisCard.Owner.CurrentLocation.CluesToken.Amount < 1)
     {
         return(false);
     }
     return(true);
 }
コード例 #3
0
 bool OnDefeatEnemy(DefeatCardAction dieAction)
 {
     if (dieAction.CardToDefeat.CardType != CardType.Enemy)
     {
         return(false);
     }
     if (GameControl.ActiveInvestigator != ThisCard.Owner)
     {
         return(false);
     }
     if (ThisCard.Owner.CurrentLocation.CluesToken.Amount < 1)
     {
         return(false);
     }
     if (effectUsed)
     {
         return(false);
     }
     return(true);
 }