{
Node a = attrs.item(i);
if ("aggro".equalsIgnoreCase(a.getNodeName()))
{
boolean val = Boolean.valueOf(a.getNodeValue());
cond = joinAnd(cond, new ConditionTargetAggro(val));
}
else if ("level".equalsIgnoreCase(a.getNodeName()))
{
int lvl = Integer.decode(getValue(a.getNodeValue(), template));
cond = joinAnd(cond, new ConditionTargetLevel(lvl));