Skip to content

Commit

Permalink
improve: missing content refill cobra flask (#2795)
Browse files Browse the repository at this point in the history
Refill cobra flask from cobra corpses
  • Loading branch information
carlospess0a authored Aug 8, 2024
1 parent d66e788 commit f75de3d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions data/scripts/actions/items/cobra_flask.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,15 @@ end

cobraFlask:id(31296)
cobraFlask:register()

local cobraFlask = Action()

function cobraFlask.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if table.contains({ 4188, 4189, 4190 }, target:getId()) then
item:transform(31296)
end
return true
end

cobraFlask:id(31297)
cobraFlask:register()

0 comments on commit f75de3d

Please sign in to comment.