Esempio n. 1
0
 public void CopyFrom(Readable_MonsterCard original)
 {
     this.Damage         = this.originalDamage = original.GetDamage();
     this.Health         = original.GetHealth();
     this.originalHealth = original.GetMaxHealth();
     this.beforeReceivingDamage_Triggers = new List <GameTrigger <Specific_LifeEffect> >(original.Get_BeforeReceivingDamage_Triggers());
     this.afterDeath_triggers            = new List <GameTrigger <GameEffect> >(original.Get_AfterDeath_Triggers());
     this.MustBeAttacked    = original.Get_MustBeAttacked();
     this.NumAttacksPerTurn = original.Get_NumAttacksPerTurn();
     base.CopyFrom(original);
 }
Esempio n. 2
0
        public int Get_Total_MonsterHealth(Game game)
        {
            int total = 0;

            foreach (ID <Readable_MonsterCard> monsterId in this.MonsterIDsInPlay.GetReadable())
            {
                Readable_MonsterCard monster = game.Get_ReadableSnapshot(monsterId);
                total += monster.GetHealth();
            }
            return(total);
        }