mirror of
https://github.com/correl/mage.git
synced 2025-04-07 17:00:08 -09:00
* Minor formatting.
This commit is contained in:
parent
317d07215c
commit
09b7e7baea
4 changed files with 12 additions and 2 deletions
Mage.Tests/src/test/java/org/mage/test/cards/abilities/oneshot/sacrifice
Mage/src/mage/abilities
|
@ -16,11 +16,19 @@ public class MorticianBeetleTest extends CardTestPlayerBase {
|
||||||
@Test
|
@Test
|
||||||
public void testSacrifice() {
|
public void testSacrifice() {
|
||||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4);
|
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4);
|
||||||
|
// Target opponent sacrifices a creature.
|
||||||
addCard(Zone.HAND, playerA, "Cruel Edict");
|
addCard(Zone.HAND, playerA, "Cruel Edict");
|
||||||
|
|
||||||
|
// Target player sacrifices a creature and loses 1 life.
|
||||||
addCard(Zone.HAND, playerA, "Geth's Verdict");
|
addCard(Zone.HAND, playerA, "Geth's Verdict");
|
||||||
|
|
||||||
|
// Whenever a player sacrifices a creature, you may put a +1/+1 counter on Mortician Beetle.
|
||||||
addCard(Zone.BATTLEFIELD, playerA, "Mortician Beetle");
|
addCard(Zone.BATTLEFIELD, playerA, "Mortician Beetle");
|
||||||
|
|
||||||
addCard(Zone.BATTLEFIELD, playerB, "Savannah Lions");
|
addCard(Zone.BATTLEFIELD, playerB, "Savannah Lions");
|
||||||
|
|
||||||
|
// First strike
|
||||||
|
// Exalted (Whenever a creature you control attacks alone, that creature gets +1/+1 until end of turn.)
|
||||||
addCard(Zone.BATTLEFIELD, playerB, "Sigiled Paladin");
|
addCard(Zone.BATTLEFIELD, playerB, "Sigiled Paladin");
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -362,6 +362,7 @@ public interface Ability extends Controllable, Serializable {
|
||||||
* Returns true if this abilities source is in the zone for the ability
|
* Returns true if this abilities source is in the zone for the ability
|
||||||
*
|
*
|
||||||
* @param game
|
* @param game
|
||||||
|
* @param source
|
||||||
* @param checkLKI
|
* @param checkLKI
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -458,7 +458,7 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Costs getCosts() {
|
public Costs<Cost> getCosts() {
|
||||||
return costs;
|
return costs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -484,7 +484,7 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Costs getOptionalCosts() {
|
public Costs<Cost> getOptionalCosts() {
|
||||||
return optionalCosts;
|
return optionalCosts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,7 @@ import mage.players.Player;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author BetaSteward_at_googlemail.com
|
* @author BetaSteward_at_googlemail.com
|
||||||
|
* @param <T>
|
||||||
*/
|
*/
|
||||||
public abstract class TriggeredAbilityImpl<T extends TriggeredAbilityImpl<T>> extends AbilityImpl<T> implements TriggeredAbility {
|
public abstract class TriggeredAbilityImpl<T extends TriggeredAbilityImpl<T>> extends AbilityImpl<T> implements TriggeredAbility {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue