mirror of
https://github.com/correl/mage.git
synced 2024-12-01 03:00:09 +00:00
Added failing ignore test for #7655
This commit is contained in:
parent
137f02f31b
commit
8878dc5cc7
2 changed files with 72 additions and 35 deletions
|
@ -12,6 +12,7 @@ import mage.constants.Zone;
|
||||||
import mage.counters.CounterType;
|
import mage.counters.CounterType;
|
||||||
import mage.util.CardUtil;
|
import mage.util.CardUtil;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.mage.test.player.TestPlayer;
|
import org.mage.test.player.TestPlayer;
|
||||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
|
@ -750,6 +751,40 @@ public class CopySpellTest extends CardTestPlayerBase {
|
||||||
//cardsMustHaveSameZoneAndZCC(originalCard.getRightHalfCard(), copiedCard.getRightHalfCard(), "right");
|
//cardsMustHaveSameZoneAndZCC(originalCard.getRightHalfCard(), copiedCard.getRightHalfCard(), "right");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reported bug: https://github.com/magefree/mage/issues/7655
|
||||||
|
* Thieving Skydiver is kicked and then copied, but the copied version does not let you gain control of anything.
|
||||||
|
*/
|
||||||
|
@Test
|
||||||
|
@Ignore
|
||||||
|
public void copySpellWithKicker() {
|
||||||
|
// When Thieving Skydiver enters the battlefield, if it was kicked, gain control of target artifact with mana value X or less.
|
||||||
|
// If that artifact is an Equipment, attach it to Thieving Skydiver.
|
||||||
|
addCard(Zone.HAND, playerA, "Thieving Skydiver");
|
||||||
|
// Copy target creature spell you control, except it isn’t legendary if the spell is legendary.
|
||||||
|
addCard(Zone.HAND, playerA, "Double Major");
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Island", 3); // Original price, + 1 kicker, + 1 for Double Major
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Forest", 3);
|
||||||
|
|
||||||
|
addCard(Zone.BATTLEFIELD, playerB, "Sol Ring", 2);
|
||||||
|
setStrictChooseMode(true);
|
||||||
|
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Thieving Skydiver");
|
||||||
|
setChoice(playerA, "Yes");
|
||||||
|
setChoice(playerA, "X=1");
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Double Major", "Thieving Skydiver", "Thieving Skydiver");
|
||||||
|
addTarget(playerA, "Sol Ring"); // Choice for copy
|
||||||
|
addTarget(playerA, "Sol Ring"); // Choice for original
|
||||||
|
|
||||||
|
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||||
|
|
||||||
|
execute();
|
||||||
|
assertAllCommandsUsed();
|
||||||
|
|
||||||
|
assertPermanentCount(playerA, "Sol Ring", 2); // 1 taken by original, one by copy
|
||||||
|
assertPermanentCount(playerB, "Sol Ring", 0);
|
||||||
|
}
|
||||||
|
|
||||||
private void abilitySourceMustBeSame(Card card, String infoPrefix) {
|
private void abilitySourceMustBeSame(Card card, String infoPrefix) {
|
||||||
Set<UUID> partIds = CardUtil.getObjectParts(card);
|
Set<UUID> partIds = CardUtil.getObjectParts(card);
|
||||||
|
|
||||||
|
|
|
@ -231,9 +231,13 @@ public class KickerAbility extends StaticAbility implements OptionalAdditionalSo
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addOptionalAdditionalCosts(Ability ability, Game game) {
|
public void addOptionalAdditionalCosts(Ability ability, Game game) {
|
||||||
if (ability instanceof SpellAbility) {
|
if (!(ability instanceof SpellAbility)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Player player = game.getPlayer(ability.getControllerId());
|
Player player = game.getPlayer(ability.getControllerId());
|
||||||
if (player != null) {
|
if (player == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.resetKicker();
|
this.resetKicker();
|
||||||
for (OptionalAdditionalCost kickerCost : kickerCosts) {
|
for (OptionalAdditionalCost kickerCost : kickerCosts) {
|
||||||
boolean again = true;
|
boolean again = true;
|
||||||
|
@ -273,8 +277,6 @@ public class KickerAbility extends StaticAbility implements OptionalAdditionalSo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void addKickerCostsToAbility(Cost cost, Ability ability, Game game) {
|
private void addKickerCostsToAbility(Cost cost, Ability ability, Game game) {
|
||||||
// can contain multiple costs from multikicker ability
|
// can contain multiple costs from multikicker ability
|
||||||
|
|
Loading…
Reference in a new issue