Try something like that:
Create passive skill for tattoo stats and add:
<target class_id_restriction="98, 99"/>
java/net/sf/l2j/gameserver/skills/DocumentBase.java:
Find: "protected Condition parseTargetCondition(Node n, Object template)"
And add:
else if ("class_id_restriction".equalsIgnoreCase(a.getNodeName()))
{
FastList<Integer> array = new FastList<Integer>();
StringTokenizer st = new StringTokenizer(a.getNodeValue(), ",");
while(st.hasMoreTokens())
{
String item = st.nextToken().trim();
array.add(Integer.decode(getValue(item, null)));
}
cond = joinAnd(cond, new ConditionTargetClassIdRestriction(array));
}
I hope I understand well what do you mean exactly.