Skip to content

Curing poison on NPC via item crashes Sphere #1549

@mtwango

Description

@mtwango

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:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions