mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
update CardsInExileCondition formatting
This commit is contained in:
parent
b519e8d8e9
commit
6cd424a003
1 changed files with 4 additions and 8 deletions
|
|
@ -14,27 +14,23 @@ import mage.util.CardUtil;
|
|||
*
|
||||
* @author Jmlundeen
|
||||
*/
|
||||
public class CardsInExileCondition implements Condition
|
||||
{
|
||||
public class CardsInExileCondition implements Condition {
|
||||
private final ComparisonType type;
|
||||
private final int count;
|
||||
private final DynamicValue cardsInExileCount;
|
||||
|
||||
public CardsInExileCondition(ComparisonType type, int count)
|
||||
{
|
||||
public CardsInExileCondition(ComparisonType type, int count) {
|
||||
this(type, count, CardsInExileCount.ALL);
|
||||
}
|
||||
|
||||
public CardsInExileCondition(ComparisonType type, int count, DynamicValue cardsInExileCount)
|
||||
{
|
||||
public CardsInExileCondition(ComparisonType type, int count, DynamicValue cardsInExileCount) {
|
||||
this.type = type;
|
||||
this.count = count;
|
||||
this.cardsInExileCount = cardsInExileCount;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source)
|
||||
{
|
||||
public boolean apply(Game game, Ability source) {
|
||||
int exileCards = cardsInExileCount.calculate(game, source, null);
|
||||
return ComparisonType.compare(exileCards, type, count);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue