forked from External/mage
* Fixed that cards without cost (e.g. Ancestral Vision) could be cast from graveyard (e.g. by using Yawgmoth Will). Fixed that cards could be suspended from graveyard (e.g. with Yawgmoth Will).
This commit is contained in:
parent
8bab182f8a
commit
9f22eb0688
6 changed files with 134 additions and 17 deletions
|
|
@ -234,6 +234,10 @@ public class SuspendAbility extends ActivatedAbilityImpl {
|
|||
|
||||
@Override
|
||||
public boolean canActivate(UUID playerId, Game game) {
|
||||
if (!game.getState().getZone(getSourceId()).equals(Zone.HAND)) {
|
||||
// Supend can only be activated from hand
|
||||
return false;
|
||||
}
|
||||
MageObject object = game.getObject(sourceId);
|
||||
return (object.getCardType().contains(CardType.INSTANT)
|
||||
|| object.hasAbility(FlashAbility.getInstance().getId(), game)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue