mirror of
https://github.com/correl/mage.git
synced 2025-04-08 01:01:04 -09:00
Add canActivate flag.
This commit is contained in:
parent
b0bac1f751
commit
f63561cfb7
1 changed files with 4 additions and 0 deletions
|
@ -3219,6 +3219,10 @@ public abstract class PlayerImpl implements Player, Serializable {
|
||||||
List<Ability> playable = new ArrayList();
|
List<Ability> playable = new ArrayList();
|
||||||
if (card != null) {
|
if (card != null) {
|
||||||
for (ActivatedAbility ability : card.getAbilities().getActivatedAbilities(Zone.HAND)) {
|
for (ActivatedAbility ability : card.getAbilities().getActivatedAbilities(Zone.HAND)) {
|
||||||
|
if (!ability.canActivate(playerId, game).canActivate()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
UUID savedControllerId = null;
|
UUID savedControllerId = null;
|
||||||
if (setControllerId) {
|
if (setControllerId) {
|
||||||
// For when owner != caster, e.g. with Psychic Intrusion and similar effects.
|
// For when owner != caster, e.g. with Psychic Intrusion and similar effects.
|
||||||
|
|
Loading…
Add table
Reference in a new issue