castOn

static boolean castOn(String spellName, Clickable target)

Casts the specified spell on the specified target. Will travel to and adjust the camera if necessary.

Return

true if the spell was cast on the target successfully, false otherwise

Parameters

spellName

the name of the spell to cast

target

the target to cast on