* Wall of Roots - Fixed that Wall could not be used after beeing exiled and returned with Momentary Blink.

This commit is contained in:
LevelX2 2014-08-16 19:27:43 +02:00
parent df475d8049
commit f633d35bfd
10 changed files with 180 additions and 22 deletions

View file

@ -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);