[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

@ -37,20 +37,20 @@ import mage.game.Game;
* @author nantuko
*/
public class HasCounterCondition implements Condition {
private CounterType counterType;
private int amount = 1;
private int amount = 1;
private int from = -1;
private int to;
public HasCounterCondition(CounterType type) {
this.counterType = type;
}
public HasCounterCondition(CounterType type, int amount) {
this.counterType = type;
this.amount = amount;
}
public HasCounterCondition(CounterType type) {
this.counterType = type;
}
public HasCounterCondition(CounterType type, int amount) {
this.counterType = type;
this.amount = amount;
}
public HasCounterCondition(CounterType type, int from, int to) {
this.counterType = type;
@ -58,8 +58,8 @@ public class HasCounterCondition implements Condition {
this.to = to;
}
@Override
public boolean apply(Game game, Ability source) {
@Override
public boolean apply(Game game, Ability source) {
if (from != -1) { //range compare
int count = game.getPermanent(source.getSourceId()).getCounters().getCount(counterType);
if (to == Integer.MAX_VALUE) {
@ -67,7 +67,7 @@ public class HasCounterCondition implements Condition {
}
return count >= from && count <= to;
} else { // single compare (lte)
return game.getPermanent(source.getSourceId()).getCounters().getCount(counterType) >= amount;
return game.getPermanent(source.getSourceId()).getCounters().getCount(counterType) >= amount;
}
}
}
}