Page 1 of 1

ComuterUtil_Block2.removeValuableBlockers()

PostPosted: 28 Oct 2010, 00:04
by Chris H.
In the file ComuterUtil_Block2.java I found a method named removeValuableBlockers(). It appears to contain a short list list of creatures that the computer will not use to block an attacker.

If this code is used then we may at some point want to create a new SVar and check for it here.

Code: Select all
   private CardList removeValuableBlockers(CardList in)
   {
      final String[] noBlock = {"Elvish Piper", "Urborg Syphon-Mage", "Sparksmith", "Royal Assassin", "Marble Titan", "Kamahl, Pit Fighter"};

      CardList out = in.filter(new CardListFilter()
      {
         public boolean addCard(Card c)
         {
            for(int i = 0; i < noBlock.length; i++)
            if(c.getName().equals(noBlock[i]))
            return false;

            return true;
         }
      });//CardListFilter

      return out;
   }