Using CASTERLEVEL in spell DESC generates java error
Using %1 in DESC of a spell generates java errors when selecting the spell as known spell (wizard) or just being able to cast the spell (cleric/druid). The errors in the log vary but it is easily reproduced:
Make a spell i.e.
Test Spell CLASSES:Wizard,Druid,Cleric,Bard,Sorcerer=1 SCHOOL:Transmutation TYPE:Arcane COMPS:V,S CASTTIME:1 standard action RANGEersonal TARGETAREA:You DURATION:1 minute SAVEINFO:None SPELLRES:No DESC:%1|(CASTERLEVEL)
Make a character (i.e. cleric) and make sure it has the spell by selecting it or leveling up. Watch the console. The error pops up faster and more often if the standard.htm charactersheet is selected.
Win7, most recent JRE, RSRD loaded.
(CASTERLEVEL) is meant to be used directly in the DESC, unlike normal %# methods. We didn't mess that up by doing this I hope.
CASTERLEVEL is now fine to use in the spell desc, however it will not include and spell specific bonuses.
The root cause is that the CASTERLEVEL is not available when processing the DESC tag, the actual %1 syntax is fine.