Fix for the holy water bottle bug (being given to any unit causing an event).

This commit is contained in:
Jan Rietema 2007-10-31 16:12:39 +00:00
parent c62f8ea1f1
commit c474fb88ee

View file

@ -1883,6 +1883,9 @@
x={X}
y={Y}
[/removeitem]
{CLEAR_VARIABLE bottle_x}
{CLEAR_VARIABLE bottle_y}
[/event]
#enddef
@ -1938,8 +1941,11 @@
description=Zhul
message= _ "It's Holy Water. When anointed on a weapon it makes it deadly to magical creatures. Vials such as these are rare and valuable. We should choose carefully who will use it."
[/message]
{VARIABLE bottle_x $x1}
{VARIABLE bottle_y $y1}
{HOLY_WATER $x1 $y1}
{HOLY_WATER $bottle_x $bottle_y}
#endif
#all surviving outlaws flee, so kill all units