private bool HasBeenDealtDamageSinceEnteringPlay()
        {
            PlayCardJournalEntry playCardJournalEntry = base.GameController.Game.Journal.QueryJournalEntries <PlayCardJournalEntry>((PlayCardJournalEntry e) => e.CardPlayed == base.Card).LastOrDefault <PlayCardJournalEntry>();
            int?playCardIndex = base.GameController.Game.Journal.GetEntryIndex(playCardJournalEntry);
            IEnumerable <DealDamageJournalEntry> damageEntries = from e in base.GameController.Game.Journal.DealDamageEntries()
                                                                 where e.TargetCard == base.Card && base.GameController.Game.Journal.GetEntryIndex(e) > playCardIndex
                                                                 select e;

            if (damageEntries.Count() > 0)
            {
                return(true);
            }

            return(false);
        }
Exemple #2
0
 private bool HasTargetDealtDamageToTitanSinceHisLastTurn(Card target)
 {
     if (target.IsTarget)
     {
         DealDamageJournalEntry dealDamageJournalEntry = (from d in base.Journal.DealDamageEntriesFromTargetToTargetSinceLastTurn(target, base.CharacterCard, base.TurnTaker) where d.Amount > 0 select d).LastOrDefault <DealDamageJournalEntry>();
         if (dealDamageJournalEntry != null && target.IsInPlayAndHasGameText)
         {
             int?entryIndex = base.GameController.Game.Journal.GetEntryIndex(dealDamageJournalEntry);
             PlayCardJournalEntry playCardJournalEntry = (from c in base.GameController.Game.Journal.PlayCardEntries() where c.CardPlayed == target select c).LastOrDefault <PlayCardJournalEntry>();
             if (playCardJournalEntry == null)
             {
                 return(true);
             }
             int?entryIndex2 = base.GameController.Game.Journal.GetEntryIndex(playCardJournalEntry);
             int?num         = entryIndex;
             int?num2        = entryIndex2;
             if (num.GetValueOrDefault() > num2.GetValueOrDefault() & (num != null & num2 != null))
             {
                 return(true);
             }
         }
     }
     return(false);
 }