mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.MageObjectReference;
|
||||
import mage.abilities.Ability;
|
||||
|
@ -20,8 +21,6 @@ import mage.target.common.TargetCardInHand;
|
|||
import mage.target.common.TargetOpponent;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
|
@ -152,7 +151,13 @@ class EliteSpellbinderCostEffect extends CostModificationEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean applies(Ability abilityToModify, Ability source, Game game) {
|
||||
return mor.refersTo(CardUtil.getMainCardId(game, abilityToModify.getSourceId()), 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);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue