mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00: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();
|
||||
if (card != null) {
|
||||
for (ActivatedAbility ability : card.getAbilities().getActivatedAbilities(Zone.HAND)) {
|
||||
if (!ability.canActivate(playerId, game).canActivate()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
UUID savedControllerId = null;
|
||||
if (setControllerId) {
|
||||
// For when owner != caster, e.g. with Psychic Intrusion and similar effects.
|
||||
|
|
Loading…
Reference in a new issue