mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fixed Haphazard Bombardment not being able to choose creatures with hexproof/shroud (fixes #5027)
This commit is contained in:
parent
5d7fb2d19d
commit
a3213fb786
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.h;
|
package mage.cards.h;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -86,7 +85,7 @@ class HaphazardBombardmentEffect extends OneShotEffect {
|
||||||
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game);
|
List<Permanent> permanents = game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game);
|
||||||
if (permanents.size() > 4) {
|
if (permanents.size() > 4) {
|
||||||
permanents.clear();
|
permanents.clear();
|
||||||
TargetPermanent target = new TargetPermanent(4, filter);
|
TargetPermanent target = new TargetPermanent(4, 4, filter, true);
|
||||||
controller.chooseTarget(outcome, target, source, game);
|
controller.chooseTarget(outcome, target, source, game);
|
||||||
for (UUID targetId : target.getTargets()) {
|
for (UUID targetId : target.getTargets()) {
|
||||||
Permanent permanent = game.getPermanent(targetId);
|
Permanent permanent = game.getPermanent(targetId);
|
||||||
|
|
Loading…
Reference in a new issue