mirror of
https://github.com/correl/mage.git
synced 2025-04-09 17:00:09 -09:00
* Grip of Chaos - Fixed that the possible random new targets were not calculated correctly.
This commit is contained in:
parent
22caed9267
commit
5075c4f533
1 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ 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(source.getSourceId(), source.getControllerId(), game);
|
||||
Set<UUID> possibleTargets = target.possibleTargets(stackObject.getSourceId(), stackObject.getControllerId(), game);
|
||||
if (possibleTargets.size() > 0) {
|
||||
int i = 0;
|
||||
int rnd = RandomUtil.nextInt(possibleTargets.size());
|
||||
|
|
Loading…
Add table
Reference in a new issue