mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Merge fix
This commit is contained in:
parent
f3790c302d
commit
89523ff8f3
1 changed files with 7 additions and 7 deletions
|
|
@ -13,16 +13,16 @@ public class ManaIncludesTest extends CardTestPlayerBase {
|
|||
|
||||
private void assertFullyIncludes(boolean canPay, String cost, String pool) {
|
||||
// workaround to add {Any} mana by string param
|
||||
String strictMain = pool.replace("{Any}", "");
|
||||
String stringPart = cost.replace("{Any}", "");
|
||||
String strictPool = pool.replace("{Any}", "");
|
||||
String stringCost = cost.replace("{Any}", "");
|
||||
|
||||
Mana manaMain = new ManaCostsImpl<>(strictMain).getMana();
|
||||
Mana manaPart = new ManaCostsImpl<>(stringPart).getMana();
|
||||
Mana manaPool = new ManaCostsImpl<>(strictPool).getMana();
|
||||
Mana manaCost = new ManaCostsImpl<>(stringCost).getMana();
|
||||
|
||||
manaMain.add(new Mana(0, 0, 0, 0, 0, 0, (pool.length() - strictMain.length()) / 5, 0));
|
||||
manaPart.add(new Mana(0, 0, 0, 0, 0, 0, (cost.length() - stringPart.length()) / 5, 0));
|
||||
manaPool.add(new Mana(0, 0, 0, 0, 0, 0, (pool.length() - strictPool.length()) / 5, 0));
|
||||
manaCost.add(new Mana(0, 0, 0, 0, 0, 0, (cost.length() - stringCost.length()) / 5, 0));
|
||||
|
||||
Assert.assertEquals(canPay, manaMain.includesMana(manaPart));
|
||||
Assert.assertEquals(canPay, manaPool.includesMana(manaCost));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue