public virtual void OnEnterInPlayAction()
        {
            BaseCard existingLocation = this.Player.InPlay.Cards.Concat(this.Player.OppositePlayer.InPlay.Cards)
                                        .SingleOrDefault(c => c.Type == Type.Location && c != this);

            if (existingLocation != null)
            {
                existingLocation.Player.Discard.Add(existingLocation);
            }
        }
Beispiel #2
0
        private void OnDamageTakenEvent(BaseCard sourceCard, int amount)
        {
            //BUG: Causes damage to count towards the enemy player when a player plays a card that causes himself to take damage.
            var cardOwner = sourceCard.Player;

            if (cardOwner == _player1)
            {
                IncreasePlayer1Progress(amount);
            }
            else if (cardOwner == _player2)
            {
                IncreasePlayer2Progress(amount);
            }
        }
Beispiel #3
0
        private void OnDamageTakenEvent(BaseCard sourceCard, int amount)
        {
            //BUG: Causes damage to count towards the enemy player when a player plays a card that causes himself to take damage.
            //probably wont fix...not sure if this ever even happens.
            var playerDealingDamage = sourceCard.Player;

            if (playerDealingDamage == _player1)
            {
                IncreasePlayer1Progress(amount);
            }
            else if (playerDealingDamage == _player2)
            {
                IncreasePlayer2Progress(amount);
            }
        }