mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
- Fixed #5409
This commit is contained in:
parent
706ed23bdc
commit
5a6bed313d
1 changed files with 4 additions and 1 deletions
|
@ -126,7 +126,10 @@ class GripOfChaosEffect extends OneShotEffect {
|
|||
Mode mode = stackObject.getStackAbility().getModes().get(modeId);
|
||||
for (Target target : mode.getTargets()) {
|
||||
UUID oldTargetId = target.getFirstTarget();
|
||||
Set<UUID> possibleTargets = target.possibleTargets(stackObject.getSourceId(), stackObject.getControllerId(), game);
|
||||
Set<UUID> possibleTargets = target.possibleTargets(stackObject.getId(), stackObject.getControllerId(), game);
|
||||
if (possibleTargets.contains(stackObject.getId())) { // The stackObject can't target itself
|
||||
possibleTargets.remove(stackObject.getId());
|
||||
}
|
||||
if (!possibleTargets.isEmpty()) {
|
||||
int i = 0;
|
||||
int rnd = RandomUtil.nextInt(possibleTargets.size());
|
||||
|
|
Loading…
Reference in a new issue