mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 04:22:01 -08:00
Improved canActivate support:
* added support of non controller activates in ActivatedManaAbility (mayActivate); * removed custom code from ActivatedManaAbility; * removed custom code from Mana Cache; * added additional comments;
This commit is contained in:
parent
bdeb0dde66
commit
33380f09c2
8 changed files with 33 additions and 29 deletions
|
|
@ -53,6 +53,11 @@ public interface ActivatedAbility extends Ability {
|
|||
*/
|
||||
ActivationStatus canActivate(UUID playerId, Game game); // has to return a reference to the permitting ability/source
|
||||
|
||||
/**
|
||||
* Who can activate an ability. By default, only you (the controller/owner).
|
||||
*
|
||||
* @param mayActivate
|
||||
*/
|
||||
void setMayActivate(TargetController mayActivate);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue