forked from External/mage
[refactoring][minor] Replaced all tabs with four spaces.
This commit is contained in:
parent
e646e4768d
commit
239a4fb100
2891 changed files with 79411 additions and 79411 deletions
|
|
@ -45,32 +45,32 @@ public class UntapAllControllerEffect extends OneShotEffect<UntapAllControllerEf
|
|||
|
||||
private FilterPermanent filter;
|
||||
|
||||
public UntapAllControllerEffect(FilterPermanent filter, String rule) {
|
||||
super(Outcome.Untap);
|
||||
staticText = rule;
|
||||
public UntapAllControllerEffect(FilterPermanent filter, String rule) {
|
||||
super(Outcome.Untap);
|
||||
staticText = rule;
|
||||
this.filter = filter;
|
||||
}
|
||||
}
|
||||
|
||||
public UntapAllControllerEffect(final UntapAllControllerEffect effect) {
|
||||
super(effect);
|
||||
public UntapAllControllerEffect(final UntapAllControllerEffect effect) {
|
||||
super(effect);
|
||||
this.filter = effect.filter;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null) {
|
||||
for (Permanent land: game.getBattlefield().getAllActivePermanents(filter, player.getId(), game)) {
|
||||
land.untap(game);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player != null) {
|
||||
for (Permanent land: game.getBattlefield().getAllActivePermanents(filter, player.getId(), game)) {
|
||||
land.untap(game);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public UntapAllControllerEffect copy() {
|
||||
return new UntapAllControllerEffect(this);
|
||||
}
|
||||
@Override
|
||||
public UntapAllControllerEffect copy() {
|
||||
return new UntapAllControllerEffect(this);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue