mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
[MOM] Implement Drana and Linvala
This commit is contained in:
parent
8c2ee477fa
commit
fbf874fdc5
4 changed files with 187 additions and 2 deletions
|
|
@ -212,7 +212,7 @@ public interface Permanent extends Card, Controllable {
|
|||
* @param sourceId
|
||||
* @param game
|
||||
*/
|
||||
void addAbility(Ability ability, UUID sourceId, Game game);
|
||||
Ability addAbility(Ability ability, UUID sourceId, Game game);
|
||||
|
||||
void removeAllAbilities(UUID sourceId, Game game);
|
||||
|
||||
|
|
|
|||
|
|
@ -381,7 +381,7 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void addAbility(Ability ability, UUID sourceId, Game game) {
|
||||
public Ability addAbility(Ability ability, UUID sourceId, Game game) {
|
||||
// singleton abilities -- only one instance
|
||||
// other abilities -- any amount of instances
|
||||
if (!abilities.containsKey(ability.getId())) {
|
||||
|
|
@ -397,7 +397,9 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
}
|
||||
abilities.add(copyAbility);
|
||||
abilities.addAll(ability.getSubAbilities());
|
||||
return copyAbility;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue