forked from External/mage
* Fixed provisional game freezing bugs of the show playable cards feature #457 (caused by DelverAbility, OfferingAbility, Rooftop Storm, Omniscience, Aluren).
This commit is contained in:
parent
ad9b73c34c
commit
142e95fe42
20 changed files with 106 additions and 34 deletions
|
|
@ -33,6 +33,7 @@ import java.util.UUID;
|
|||
|
||||
import mage.Mana;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.ActivatedAbility;
|
||||
import mage.abilities.SpellAbility;
|
||||
import mage.abilities.costs.AlternativeCost;
|
||||
import mage.abilities.costs.AlternativeCostImpl;
|
||||
|
|
@ -490,4 +491,17 @@ public class CardUtil {
|
|||
}
|
||||
return uniqueString.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if the ability is used to check which cards
|
||||
* are playable on hand. (Issue #457)
|
||||
* @param ability - ability to check
|
||||
* @return
|
||||
*/
|
||||
public static boolean isCheckPlayableMode(Ability ability) {
|
||||
if (ability instanceof ActivatedAbility) {
|
||||
return ((ActivatedAbility) ability).isCheckPlayableMode();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue