mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Estrid, the Masked - fixed problems with with first and second ability (fixes #5223).
This commit is contained in:
parent
2f8b8c7f06
commit
9e88d847ed
3 changed files with 15 additions and 7 deletions
|
|
@ -1410,7 +1410,7 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void resetControlAfterSpellResolve(UUID topId) {
|
||||
// for Word of Command
|
||||
|
|
@ -1958,7 +1958,12 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
SpellAbility spellAbility = perm.getSpellAbility();
|
||||
Ability spellAbility = perm.getSpellAbility();
|
||||
if (spellAbility == null) {
|
||||
if (!perm.getAbilities().isEmpty()) {
|
||||
spellAbility = perm.getAbilities().get(0); // Can happen for created tokens (e.g. Estrid, the Masked)
|
||||
}
|
||||
}
|
||||
if (spellAbility.getTargets().isEmpty()) {
|
||||
for (Ability ability : perm.getAbilities(this)) {
|
||||
if ((ability instanceof SpellAbility)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.common.AttachEffect;
|
||||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.abilities.keyword.TotemArmorAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
|
|
@ -27,6 +27,7 @@ public final class MaskToken extends TokenImpl {
|
|||
|
||||
TargetPermanent auraTarget = new TargetPermanent();
|
||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||
ability.addTarget(auraTarget);
|
||||
ability.addEffect(new AttachEffect(Outcome.BoostCreature));
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue