mirror of
https://github.com/magefree/mage.git
synced 2026-01-19 01:39:58 -08:00
* Unbreathing Horde - Fixed that the creature came onto battlefield with one counter less than intended.
This commit is contained in:
parent
9129bda9b7
commit
005a805973
5 changed files with 144 additions and 136 deletions
|
|
@ -96,6 +96,10 @@ class OblivionSowerEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
/*
|
||||
8/25/2015: Oblivion Sower’s ability allows you to put any land cards the player owns from exile onto the battlefield, regardless of how those cards were exiled.
|
||||
8/25/2015: Cards that are face down in exile have no characteristics. Such cards can’t be put onto the battlefield with Oblivion Sower’s ability.
|
||||
*/
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Player targetPlayer = game.getPlayer(getTargetPointer().getFirst(game, source));
|
||||
if (controller != null && targetPlayer != null) {
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class UnbreathingHordeEffect1 extends OneShotEffect {
|
|||
Player player = game.getPlayer(source.getControllerId());
|
||||
Permanent permanent = game.getPermanentEntering(source.getSourceId());
|
||||
if (permanent != null && player != null) {
|
||||
int amount = game.getBattlefield().countAll(filter1, source.getControllerId(), game) - 1;
|
||||
int amount = game.getBattlefield().countAll(filter1, source.getControllerId(), game);
|
||||
amount += player.getGraveyard().count(filter2, game);
|
||||
if (amount > 0) {
|
||||
permanent.addCounters(CounterType.P1P1.createInstance(amount), game);
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ import mage.target.TargetSpell;
|
|||
public class MoltenInfluence extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("instant or sorcery spell");
|
||||
|
||||
static {
|
||||
Predicates.or(
|
||||
new CardTypePredicate(CardType.INSTANT),
|
||||
|
|
@ -59,7 +60,6 @@ public class MoltenInfluence extends CardImpl {
|
|||
super(ownerId, 207, "Molten Influence", Rarity.RARE, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
||||
this.expansionSetCode = "ODY";
|
||||
|
||||
|
||||
// Counter target instant or sorcery spell unless its controller has Molten Influence deal 4 damage to him or her.
|
||||
this.getSpellAbility().addTarget(new TargetSpell(filter));
|
||||
this.getSpellAbility().addEffect(new MoltenInfluenceEffect());
|
||||
|
|
@ -80,7 +80,7 @@ class MoltenInfluenceEffect extends OneShotEffect {
|
|||
|
||||
public MoltenInfluenceEffect() {
|
||||
super(Outcome.Detriment);
|
||||
this.staticText = "Counter target instant or sorcery spell unless its controller has Molten Influence deal 4 damage to him or her";
|
||||
this.staticText = "Counter target instant or sorcery spell unless its controller has {this} deal 4 damage to him or her";
|
||||
}
|
||||
|
||||
public MoltenInfluenceEffect(final MoltenInfluenceEffect effect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue