forked from External/mage
Tyvar Kell and gain ability fixes:
* GainAbilityTargetEffect - reworked to support static/dynamic targets, added support of spells (card + related permanent); * SpellCastControllerTriggeredAbility - now it can setup the target to a card instead a spell; * Added checks/errors on wrong ability adding code (example: if you add permanent's ability by game state instead permanent's method); * Tyvar Kell Emblem now use a standard code; * Test framework: added additional logs for some errors;
This commit is contained in:
parent
f131fd0d12
commit
6dcbcbe962
13 changed files with 291 additions and 140 deletions
|
|
@ -176,6 +176,13 @@ public interface Permanent extends Card, Controllable {
|
|||
|
||||
String getValue(GameState state);
|
||||
|
||||
/**
|
||||
* Add abilities to the permanent, can be used in effects
|
||||
*
|
||||
* @param ability
|
||||
* @param sourceId
|
||||
* @param game
|
||||
*/
|
||||
void addAbility(Ability ability, UUID sourceId, Game game);
|
||||
|
||||
void removeAllAbilities(UUID sourceId, Game game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue