forked from External/mage
Reworked selected modes handling. That fixed the Subtle Strike targeting problem.
This commit is contained in:
parent
0b118d074e
commit
c9bb0be016
33 changed files with 163 additions and 131 deletions
|
|
@ -70,7 +70,7 @@ public class TargetAddress {
|
|||
|
||||
protected Iterator<SpellAbility> spellAbilityIterator;
|
||||
protected Integer lastSpellAbilityIndex = null;
|
||||
protected Iterator<Mode> modeIterator = null;
|
||||
protected Iterator<UUID> modeIterator = null;
|
||||
protected Modes modes = null;
|
||||
protected UUID lastMode = null;
|
||||
protected Iterator<Target> targetIterator = null;
|
||||
|
|
@ -127,7 +127,7 @@ public class TargetAddress {
|
|||
}
|
||||
|
||||
if (modeIterator != null && modeIterator.hasNext()) {
|
||||
lastMode = modeIterator.next().getId();
|
||||
lastMode = modeIterator.next();
|
||||
targetIterator = modes.get(lastMode).getTargets().iterator();
|
||||
} else {
|
||||
lastMode = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue