use of eidolons.ability.effects.oneshot.mechanic.ChangeFacingEffect in project Eidolons by IDemiurge.
the class Choice method getTurns.
public Boolean[] getTurns() {
if (actions.size() == 1 || turns != null) {
return turns;
}
try {
List<Boolean> list = new ArrayList<>();
for (Action a : actions) {
DC_ActiveObj active = a.getActive();
if (active.getName().contains("lockwise")) {
if (!active.isConstructed()) {
active.construct();
}
for (Effect e : active.getAbilities().getEffects()) {
if (e instanceof ChangeFacingEffect) {
list.add(((ChangeFacingEffect) e).isClockwise());
}
}
}
}
turns = list.toArray(new Boolean[list.size()]);
return turns;
} catch (Exception e) {
}
return null;
}
Aggregations