mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 04:12:14 -08:00
Fixed combat actions in MAD AI. Updated tests.
This commit is contained in:
parent
1f259ec772
commit
53e9d2752b
13 changed files with 46 additions and 22 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue