mirror of
https://github.com/correl/mage.git
synced 2025-04-08 17:00:07 -09:00
moved addAbilities method into the only class that uses it to make my IDE's autocomplete less annoying
This commit is contained in:
parent
46c1718b57
commit
44596dba06
2 changed files with 9 additions and 8 deletions
Mage/src/main/java/mage/cards
|
@ -329,12 +329,6 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
|||
}
|
||||
}
|
||||
|
||||
protected void addAbilities(List<Ability> abilities) {
|
||||
for (Ability ability : abilities) {
|
||||
addAbility(ability);
|
||||
}
|
||||
}
|
||||
|
||||
protected void addAbility(Ability ability, Watcher watcher) {
|
||||
addAbility(ability);
|
||||
ability.addWatcher(watcher);
|
||||
|
|
|
@ -2,11 +2,13 @@
|
|||
|
||||
package mage.cards;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.constants.CardType;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public abstract class LevelerCard extends CardImpl {
|
||||
|
@ -30,4 +32,9 @@ public abstract class LevelerCard extends CardImpl {
|
|||
this.maxLevelCounters = maxLevelCounters;
|
||||
}
|
||||
|
||||
protected void addAbilities(List<Ability> abilities) {
|
||||
for (Ability ability : abilities) {
|
||||
addAbility(ability);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue