mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
* Hindering Light - Fixed that target check did not work correctly for modal spells (e.g. Cryptic Command).
This commit is contained in:
parent
50e8e3930c
commit
d427e9a315
1 changed files with 12 additions and 10 deletions
|
@ -84,7 +84,8 @@ class HinderingLightPredicate implements ObjectPlayerPredicate<ObjectPlayer<Stac
|
||||||
if (controllerId == null) {
|
if (controllerId == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
for (UUID modeId :input.getObject().getStackAbility().getModes().getSelectedModes()) {
|
||||||
|
input.getObject().getStackAbility().getModes().setActiveMode(modeId);
|
||||||
for (Target target : input.getObject().getStackAbility().getTargets()) {
|
for (Target target : input.getObject().getStackAbility().getTargets()) {
|
||||||
for (UUID targetId : target.getTargets()) {
|
for (UUID targetId : target.getTargets()) {
|
||||||
if (controllerId.equals(targetId)) {
|
if (controllerId.equals(targetId)) {
|
||||||
|
@ -96,6 +97,7 @@ class HinderingLightPredicate implements ObjectPlayerPredicate<ObjectPlayer<Stac
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue