mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
* Some more use of StaticFilter objects.
This commit is contained in:
parent
d5f4df7f54
commit
4806738cfb
234 changed files with 1211 additions and 1211 deletions
|
|
@ -781,9 +781,9 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
}
|
||||
List<Permanent> targets;
|
||||
if (outcome.isGood()) {
|
||||
targets = threats(playerId, source.getSourceId(), new FilterCreaturePermanent(), game, target.getTargets());
|
||||
targets = threats(playerId, source.getSourceId(), StaticFilters.FILTER_PERMANENT_CREATURE, game, target.getTargets());
|
||||
} else {
|
||||
targets = threats(opponentId, source.getSourceId(), new FilterCreaturePermanent(), game, target.getTargets());
|
||||
targets = threats(opponentId, source.getSourceId(), StaticFilters.FILTER_PERMANENT_CREATURE, game, target.getTargets());
|
||||
}
|
||||
for (Permanent permanent : targets) {
|
||||
if (target.canTarget(getId(), permanent.getId(), source, game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue