//Return the targeting pattern public Pair <bool[], bool[]> getTargetPattern(SpellData data, ICaster[] targets, int selected, ICaster[] allies, int position) { if (data.style == null || !styles[data.style].isTarget) { return(spells[data.root].targetData.toArrayPair(targets, selected, allies, position)); } else { TargetData t = new TargetData(false); t.copyFrom(spells[data.root].targetData); styles[data.style].targets.modify(t); return(t.toArrayPair(targets, selected, allies, position)); } }