[FIX] Fixed Yixlid Jailer not removing certain abilities.

This commit is contained in:
emerald000 2014-07-17 17:21:59 -04:00
parent 013b29514c
commit f81af16fa4

View file

@ -29,6 +29,7 @@ package mage.sets.futuresight;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Abilities;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ContinuousEffectImpl;
@ -103,6 +104,10 @@ class YixlidJailerEffect extends ContinuousEffectImpl {
card.getAbilities().clear();
game.getContinuousEffects().removeGainedEffectsForSource(card.getId());
game.getState().resetTriggersForSourceId(card.getId());
Abilities abilities = game.getState().getAllOtherAbilities(card.getId());
if (abilities != null) {
abilities.clear();
}
}
}
}