mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fixed npe of tests.
This commit is contained in:
parent
e7014f385b
commit
6b635d9b8c
1 changed files with 2 additions and 2 deletions
|
@ -988,11 +988,11 @@ public abstract class CardTestPlayerAPIImpl extends MageTestPlayerBase implement
|
||||||
public void castSpell(int turnNum, PhaseStep step, TestPlayer player, String cardName, String targetName, String spellOnStack, StackClause clause) {
|
public void castSpell(int turnNum, PhaseStep step, TestPlayer player, String cardName, String targetName, String spellOnStack, StackClause clause) {
|
||||||
if (StackClause.WHILE_ON_STACK.equals(clause)) {
|
if (StackClause.WHILE_ON_STACK.equals(clause)) {
|
||||||
player.addAction(turnNum, step, "activate:Cast " + cardName
|
player.addAction(turnNum, step, "activate:Cast " + cardName
|
||||||
+ "$" + (targetName.startsWith("target") ? targetName : "target=" + targetName)
|
+ "$" + (targetName != null && targetName.startsWith("target") ? targetName : "target=" + targetName)
|
||||||
+ "$spellOnStack=" + spellOnStack);
|
+ "$spellOnStack=" + spellOnStack);
|
||||||
} else {
|
} else {
|
||||||
player.addAction(turnNum, step, "activate:Cast " + cardName
|
player.addAction(turnNum, step, "activate:Cast " + cardName
|
||||||
+ "$" + (targetName.startsWith("target") ? targetName : "target=" + targetName)
|
+ "$" + (targetName != null && targetName.startsWith("target") ? targetName : "target=" + targetName)
|
||||||
+ "$!spellOnStack=" + spellOnStack);
|
+ "$!spellOnStack=" + spellOnStack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue