[REX] Implement Grim Giganotosaurus (#12103)

* Implement Grim Giganotosaurus

* Refactor MonstrosityAbility to take cost adjuster

* Update Nemesis of Mortals' monstrous ability and add test for cost reduction
This commit is contained in:
jimga150 2024-04-17 20:24:37 -04:00 committed by GitHub
parent 9d7bf27d38
commit b0d7daa85e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 147 additions and 13 deletions

View file

@ -0,0 +1,42 @@
package org.mage.test.cards.abilities.activated;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
public class NemesisOfMortalsTests extends CardTestPlayerBase {
@Test
public void testNoCostReduction() {
addCard(Zone.BATTLEFIELD, playerA, "Nemesis of Mortals");
addCard(Zone.BATTLEFIELD, playerA, "Forest", 9);
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{7}{G}{G}");
setStrictChooseMode(true);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertTappedCount("Forest", true, 9);
}
@Test
public void testWithCostReduction() {
addCard(Zone.BATTLEFIELD, playerA, "Nemesis of Mortals");
addCard(Zone.BATTLEFIELD, playerA, "Forest", 9);
addCard(Zone.GRAVEYARD, playerA, "Memnite", 4);
addCard(Zone.GRAVEYARD, playerA, "Forest", 2);
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{7}{G}{G}");
setStrictChooseMode(true);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertTappedCount("Forest", true, 5);
}
}