use of pcgen.cdom.helper.AvailableSpell in project pcgen by PCGen.
the class SpellListToAvailableSpellFacet method dataAdded.
@Override
public void dataAdded(DataFacetChangeEvent<CharID, CDOMList<Spell>> dfce) {
CharID id = dfce.getCharID();
CDOMList<Spell> list = dfce.getCDOMObject();
Collection<AvailableSpell> spells = masterAvailableSpellFacet.getSet(id.getDatasetID());
for (AvailableSpell as : spells) {
if (as.getSpelllist().equals(list)) {
add(id, as, this);
}
}
}
Aggregations