Using CASTERLEVEL in spell DESC generates java error

Description

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.

Environment

Win7, most recent JRE, RSRD loaded.

Activity

Show:
Andrew Maitland
November 19, 2013, 10:59 PM

(CASTERLEVEL) is meant to be used directly in the DESC, unlike normal %# methods. We didn't mess that up by doing this I hope.

James Dempsey
November 17, 2013, 6:40 PM

CASTERLEVEL is now fine to use in the spell desc, however it will not include and spell specific bonuses.

James Dempsey
November 17, 2013, 6:00 PM

The root cause is that the CASTERLEVEL is not available when processing the DESC tag, the actual %1 syntax is fine.

Fixed

Assignee

James Dempsey

Reporter

Arjan

Labels

None

Theme

None

Epic/Theme

None

Pending User Input

None

Fix versions

Affects versions

Priority

Minor