mirror of
https://github.com/magefree/mage.git
synced 2026-01-19 01:39:58 -08:00
Failing test and fix for additional costs not displayed in tooltips
This commit is contained in:
parent
f77284d424
commit
3d1bb8e1ab
2 changed files with 49 additions and 5 deletions
|
|
@ -0,0 +1,34 @@
|
|||
package org.mage.test.cards.rules;
|
||||
|
||||
import mage.Constants;
|
||||
import mage.cards.Card;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author magenoxx_at_googlemail.com
|
||||
*/
|
||||
public class AdditionalCostRuleTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testAdditionalCostDisplayed() {
|
||||
addCard(Constants.Zone.GRAVEYARD, playerA, "Silvergill Adept");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
Card firewildBorderpost = playerA.getGraveyard().getCards(currentGame).iterator().next();
|
||||
boolean found = false;
|
||||
for (String rule : firewildBorderpost.getRules()) {
|
||||
if (rule.startsWith("As an additional cost to cast")) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
Assert.assertTrue("Couldn't find rule text for additional cost on a card: " + firewildBorderpost.getName(), found);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue