take into account CantActivateAbilities in canPlay
parent
65b8ba5107
commit
6be420c2ac
|
@ -94,6 +94,10 @@ public abstract class MagicActivation<T extends MagicSource> implements MagicEve
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (source.isPermanent() && player.hasState(MagicPlayerState.CantActivateAbilities)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (source.isSpell() && player.hasState(MagicPlayerState.CantCastSpells)) {
|
if (source.isSpell() && player.hasState(MagicPlayerState.CantCastSpells)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue