Skip to main content

containsspell

Discworld expression help

containsspell

Name

containsspell - contains an spell

Syntax

array object containsspell(array object obs, string spell)

Description

This method will find the objects that contain the specified spell in the set of passed in objects.

If you set the spell type you are looking for to "any" then it will match any sort of spell.

To detect spells on scrolls one of the shop employees must be a wizard.

Examples

containsspell(objects, "ressurect")
containsspell(objects, "any")

See also

containsimbue, objects