Skip to content

Commit

Permalink
pbs_healing_skills: don't override if using item on non-critter
Browse files Browse the repository at this point in the history
- This fixes an issue where using any "skill boost" item prevents object script use_obj_on_p_proc from running, potentially game breaking.
  • Loading branch information
phobos2077 committed Jun 3, 2024
1 parent aa04ddb commit bde80cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts_src/_pbs_main/gl_pbs_healing_skills.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ procedure useobjon_hook begin
item := get_sfall_arg,
useItemResult;

// In vanilla, you can try to "heal" non-critters. Just skip that case.
if (obj_type(target) != OBJ_TYPE_CRITTER) then return;

useItemResult := protinst_use_item_on(user, target, item);
intface_redraw;
if (useItemResult != -1) then
Expand Down

0 comments on commit bde80cf

Please sign in to comment.