mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Elite Spellbinder - Fixed that the playable check for the exiled card did not check the required mana correctly.
This commit is contained in:
parent
2ecad7423e
commit
2134d004af
1 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
||||||
package mage.cards.e;
|
package mage.cards.e;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.MageObjectReference;
|
import mage.MageObjectReference;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
|
@ -20,8 +21,6 @@ import mage.target.common.TargetCardInHand;
|
||||||
import mage.target.common.TargetOpponent;
|
import mage.target.common.TargetOpponent;
|
||||||
import mage.util.CardUtil;
|
import mage.util.CardUtil;
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
*/
|
*/
|
||||||
|
@ -152,8 +151,14 @@ class EliteSpellbinderCostEffect extends CostModificationEffectImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
||||||
|
if (game.inCheckPlayableState()) { // during playable check, the card is still in exile zone, the zcc is one less
|
||||||
|
UUID cardtoCheckId = CardUtil.getMainCardId(game, abilityToModify.getSourceId());
|
||||||
|
return mor.getSourceId().equals(cardtoCheckId)
|
||||||
|
&& mor.getZoneChangeCounter() == game.getState().getZoneChangeCounter(cardtoCheckId) + 1;
|
||||||
|
} else {
|
||||||
return mor.refersTo(CardUtil.getMainCardId(game, abilityToModify.getSourceId()), game);
|
return mor.refersTo(CardUtil.getMainCardId(game, abilityToModify.getSourceId()), game);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EliteSpellbinderCostEffect copy() {
|
public EliteSpellbinderCostEffect copy() {
|
||||||
|
|
Loading…
Reference in a new issue