mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
- Added Esper Stormblade, Grixis Grimblade, and Thopter Foundry.
This commit is contained in:
parent
6992c92760
commit
4c423c6e7e
4 changed files with 292 additions and 3 deletions
|
|
@ -97,13 +97,13 @@ public class ControlsPermanentCondition implements Condition {
|
|||
|
||||
switch ( this.type ) {
|
||||
case FEWER_THAN:
|
||||
conditionApplies = game.getBattlefield().countAll(filter, source.getControllerId(), game) < this.count;
|
||||
conditionApplies = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game) < this.count;
|
||||
break;
|
||||
case MORE_THAN:
|
||||
conditionApplies = game.getBattlefield().countAll(filter, source.getControllerId(), game) > this.count;
|
||||
conditionApplies = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game) > this.count;
|
||||
break;
|
||||
case EQUAL_TO:
|
||||
conditionApplies = game.getBattlefield().countAll(filter, source.getControllerId(), game) == this.count;
|
||||
conditionApplies = game.getBattlefield().count(filter, source.getSourceId(), source.getControllerId(), game) == this.count;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue