mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
* Wall of Roots - Fixed that Wall could not be used after beeing exiled and returned with Momentary Blink.
This commit is contained in:
parent
df475d8049
commit
f633d35bfd
10 changed files with 180 additions and 22 deletions
|
|
@ -801,7 +801,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
@Override
|
||||
public boolean activateAbility(ActivatedAbility ability, Game game) {
|
||||
for (Target target: ability.getModes().getMode().getTargets()) {
|
||||
for (UUID targetId: target.getTargets()) {
|
||||
|
|
@ -883,8 +883,8 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
for (Mana avail: available) {
|
||||
if (mana.enough(avail)) {
|
||||
SpellAbility ability = card.getSpellAbility();
|
||||
if (ability != null && ability.canActivate(playerId, game) && game.getContinuousEffects().
|
||||
preventedByRuleModification(GameEvent.getEvent(GameEvent.EventType.CAST_SPELL, ability.getSourceId(), ability.getSourceId(), playerId), game, true)) {
|
||||
if (ability != null && ability.canActivate(playerId, game) &&
|
||||
game.getContinuousEffects().preventedByRuleModification(GameEvent.getEvent(GameEvent.EventType.CAST_SPELL, ability.getSourceId(), ability.getSourceId(), playerId), game, true)) {
|
||||
if (card.getCardType().contains(CardType.INSTANT)
|
||||
|| card.hasAbility(FlashAbility.getInstance().getId(), game)) {
|
||||
playableInstant.add(card);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue