When item is linked to NPC and casts cure on it via link.spelleffect s_cure 1000 sphere crashes.
Testing item:
[ITEMDEF i_test_tile]
ID=01826
NAME=Healing tile
TYPE=0
on=@dclick
src.sysmessage Testing cure on character via item.
if (!<link.isvalid> || <link.serial> >= 040000000)
src.sysmessage invalid link.
return 1
endif
link.flags = <link.flags>|statf_poisoned
timer = 5
return 1
on=@timer
if (!<link.isvalid> || <link.serial> >= 040000000)
say invalid link.
link = 04fffffff
timer = -1
return 1
endif
// Crash occurs here.
link.spelleffect = s_cure 1000
timer = 5
return 1
Testing: Link item to npc and dclick.
Stacktrace in screen:

When item is linked to NPC and casts cure on it via
link.spelleffect s_cure 1000sphere crashes.Testing item:
Testing: Link item to npc and dclick.
Stacktrace in screen: