Пример #1
0
		public override bool ShouldBePlayedOnTarget(Board board,Card target)
        {
			if(target.IsFriend)
			{
				if(!target.HasBadBuffs())
					return false;
			}
			
			if(target.Type == Card.CType.HERO && !target.IsFriend && board.GetHeroEnemyHpAndArmor() > 2)
				return false;
			
            return true;
        }
Пример #2
0
        public override bool ShouldAttack(Board board)
        {
			Card me = null;
			
			foreach(Card c in board.MinionFriend)
			{
				if(c.Behavior == this)
					me = c;
			}
			
			if(me != null)
				if(board.GetHeroEnemyHpAndArmor() > me.CurrentAtk)
					return false;
					
            return true;
        }