forked from External/mage
changes to support multiplayer
This commit is contained in:
parent
d6989797ba
commit
2d5af63cba
41 changed files with 586 additions and 204 deletions
|
|
@ -47,11 +47,9 @@ public class DestroyAllControlledTargetEffect extends OneShotEffect {
|
|||
this.filter = filter;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game) {
|
||||
filter.getControllerId().clear();
|
||||
filter.getControllerId().add(this.source.getFirstTarget());
|
||||
filter.setNotController(false);
|
||||
for (Permanent permanent: game.getBattlefield().getActivePermanents(filter)) {
|
||||
for (Permanent permanent: game.getBattlefield().getAllActivePermanents(filter, this.source.getFirstTarget())) {
|
||||
permanent.destroy(this.source.getSourceId(), game, false);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue