mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
[FIX] Fixed Yixlid Jailer not removing certain abilities.
This commit is contained in:
parent
013b29514c
commit
f81af16fa4
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,7 @@ package mage.sets.futuresight;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
|
import mage.abilities.Abilities;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.effects.ContinuousEffectImpl;
|
import mage.abilities.effects.ContinuousEffectImpl;
|
||||||
|
@ -103,6 +104,10 @@ class YixlidJailerEffect extends ContinuousEffectImpl {
|
||||||
card.getAbilities().clear();
|
card.getAbilities().clear();
|
||||||
game.getContinuousEffects().removeGainedEffectsForSource(card.getId());
|
game.getContinuousEffects().removeGainedEffectsForSource(card.getId());
|
||||||
game.getState().resetTriggersForSourceId(card.getId());
|
game.getState().resetTriggersForSourceId(card.getId());
|
||||||
|
Abilities abilities = game.getState().getAllOtherAbilities(card.getId());
|
||||||
|
if (abilities != null) {
|
||||||
|
abilities.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue