1
0
Fork 0
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:
LevelX2 2016-11-08 18:19:38 +01:00
parent 22caed9267
commit 5075c4f533

View file

@ -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());