[refactoring][minor] Replaced all tabs with four spaces.

This commit is contained in:
North 2012-06-19 23:50:20 +03:00
parent e646e4768d
commit 239a4fb100
2891 changed files with 79411 additions and 79411 deletions

View file

@ -41,30 +41,30 @@ import mage.game.permanent.Permanent;
*/
public class DestroyAllControlledTargetEffect extends OneShotEffect<DestroyAllControlledTargetEffect> {
private FilterPermanent filter;
private FilterPermanent filter;
public DestroyAllControlledTargetEffect(FilterPermanent filter) {
super(Outcome.DestroyPermanent);
this.filter = filter;
staticText = "Destroy all " + filter.getMessage() + " controlled by target player";
}
public DestroyAllControlledTargetEffect(FilterPermanent filter) {
super(Outcome.DestroyPermanent);
this.filter = filter;
staticText = "Destroy all " + filter.getMessage() + " controlled by target player";
}
public DestroyAllControlledTargetEffect(final DestroyAllControlledTargetEffect effect) {
super(effect);
this.filter = effect.filter.copy();
}
public DestroyAllControlledTargetEffect(final DestroyAllControlledTargetEffect effect) {
super(effect);
this.filter = effect.filter.copy();
}
@Override
public DestroyAllControlledTargetEffect copy() {
return new DestroyAllControlledTargetEffect(this);
}
@Override
public DestroyAllControlledTargetEffect copy() {
return new DestroyAllControlledTargetEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
for (Permanent permanent: game.getBattlefield().getAllActivePermanents(filter, source.getFirstTarget(), game)) {
permanent.destroy(source.getId(), game, false);
}
return true;
}
@Override
public boolean apply(Game game, Ability source) {
for (Permanent permanent: game.getBattlefield().getAllActivePermanents(filter, source.getFirstTarget(), game)) {
permanent.destroy(source.getId(), game, false);
}
return true;
}
}