mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Moved some postresolveEffects to the correct package.
This commit is contained in:
parent
16b01b03be
commit
2a9af5ad99
17 changed files with 31 additions and 22 deletions
|
|
@ -663,16 +663,18 @@ public abstract class AbilityImpl implements Ability {
|
|||
|
||||
@Override
|
||||
public List<Watcher> getWatchers() {
|
||||
if (watchers != null)
|
||||
if (watchers != null) {
|
||||
return watchers;
|
||||
else
|
||||
} else {
|
||||
return emptyWatchers;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addWatcher(Watcher watcher) {
|
||||
if (watchers == null)
|
||||
if (watchers == null) {
|
||||
watchers = new ArrayList<>();
|
||||
}
|
||||
watcher.setSourceId(this.sourceId);
|
||||
watcher.setControllerId(this.controllerId);
|
||||
watchers.add(watcher);
|
||||
|
|
@ -680,16 +682,18 @@ public abstract class AbilityImpl implements Ability {
|
|||
|
||||
@Override
|
||||
public List<Ability> getSubAbilities() {
|
||||
if (subAbilities != null)
|
||||
if (subAbilities != null) {
|
||||
return subAbilities;
|
||||
else
|
||||
} else {
|
||||
return emptyAbilities;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addSubAbility(Ability ability) {
|
||||
if (subAbilities == null)
|
||||
if (subAbilities == null) {
|
||||
subAbilities = new ArrayList<>();
|
||||
}
|
||||
ability.setSourceId(this.sourceId);
|
||||
ability.setControllerId(this.controllerId);
|
||||
subAbilities.add(ability);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue