mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
Fix filtering bug in Leyline of Abundance.
Basically the abundance effect was triggering on your opponents' mana creatures too. Now it should only trigger on your own. Added previously-failing test as well. Fixes #6052.
This commit is contained in:
parent
133b5495f9
commit
272d72caae
2 changed files with 39 additions and 2 deletions
|
|
@ -0,0 +1,37 @@
|
|||
|
||||
package org.mage.test.cards.mana;
|
||||
|
||||
import mage.constants.ManaType;
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author apetresc
|
||||
*/
|
||||
public class LeylineOfAbundanceTest extends CardTestPlayerBase {
|
||||
|
||||
/**
|
||||
* Creatures an opponent controls shouldn't trigger Leyline's ability to
|
||||
* generate additional mana.
|
||||
*/
|
||||
@Test
|
||||
public void testOpponentsManaCreatures() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Upwelling", 1);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Leyline of Abundance");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Llanowar Elves");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Leyline of Abundance");
|
||||
|
||||
activateAbility(3, PhaseStep.PRECOMBAT_MAIN, playerB, "{T}: Add {G}");
|
||||
setStopAt(3, PhaseStep.PRECOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertManaPool(playerB, ManaType.GREEN, 2);
|
||||
assertManaPool(playerA, ManaType.GREEN, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue