take into account CantActivateAbilities in canPlay

master
melvin 2013-02-16 17:15:30 +08:00
parent 65b8ba5107
commit 6be420c2ac
1 changed files with 4 additions and 0 deletions

View File

@ -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;
} }