Skip to content

Commit

Permalink
InventoryCommon: force targeting for item use #531
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxlynxlynx committed Dec 31, 2019
1 parent e1f329a commit b2cd680
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gemrb/GUIScripts/InventoryCommon.py
Expand Up @@ -693,7 +693,8 @@ def DrinkItemWindow ():
pc = GemRB.GameGetSelectedPCSingle ()
slot = GemRB.GetVar ("ItemButton")
# the drink item header is always the first
GemRB.UseItem (pc, slot, 0)
# pst also requires forcing the target (eg. clot charms), which doesn't hurt elsewhere
GemRB.UseItem (pc, slot, 0, 5)
CloseItemInfoWindow ()
return

Expand Down

0 comments on commit b2cd680

Please sign in to comment.