Returns whether an item can be used on the player or friendly units. Helpful items include potions, scrolls, food and drink.
See also Item functions.
Signature:
isHarmful
=
IsHelpfulItem(itemID)
or
IsHelpfulItem("itemName")
or
IsHelpfulItem("itemLink")
Arguments:
itemID
- An item's ID (number
)itemName
- An item's name (string
)itemLink
- An item's hyperlink, or any string containing theitemString
portion of an item link (string
)
Returns:
isHarmful
- 1 if the item can be used on the player or friendly units; otherwise nil (1nil
)