Fixed combat actions in MAD AI. Updated tests.

This commit is contained in:
magenoxx 2011-12-24 18:45:13 +04:00
parent 1f259ec772
commit 53e9d2752b
13 changed files with 46 additions and 22 deletions

View file

@ -4,7 +4,6 @@ import junit.framework.Assert;
import mage.Constants;
import mage.counters.Counter;
import mage.counters.CounterType;
import mage.game.GameImpl;
import mage.game.permanent.Permanent;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestBase;
@ -37,8 +36,5 @@ public class LevelUpAbilityTest extends CardTestBase {
Assert.assertNotNull(master.getCounters());
Assert.assertFalse(master.getCounters().isEmpty());
Assert.assertEquals(12, master.getCounters().getCount(CounterType.LEVEL));
System.out.println("Copy count: " + GameImpl.copyCount);
System.out.println("Copy time: " + GameImpl.copyTime + " ms");
}
}

View file

@ -22,6 +22,7 @@ public class DamageDistributionTest extends CardTestBase {
Permanent instigator = getPermanent("Warren Instigator", playerA.getId());
Assert.assertNotNull(instigator);
Assert.assertTrue("Computer didn't attacked with Warren Instigator", instigator.isTapped());
// should block and die
assertPermanentCount(playerB, "Merfolk Looter", 0);

View file

@ -1,6 +1,7 @@
package org.mage.test.serverside.performance;
import mage.game.Game;
import org.junit.Ignore;
import org.mage.test.serverside.base.CardTestBase;
/**
@ -8,6 +9,7 @@ import org.mage.test.serverside.base.CardTestBase;
*
* @ayratn
*/
@Ignore
public class CopyGameStatePerformanceTest extends CardTestBase {
public void run() throws Exception {