Return Grüü's gold to Kapou'e only if positive

This commit is contained in:
ln-zookeeper 2014-06-05 12:33:24 +03:00
parent bde4e8fdee
commit 8cee267b5a

View file

@ -754,10 +754,24 @@
variable=stored_Gruu_side
[/store_side]
[gold]
side=1
amount=$stored_Gruu_side.gold
[/gold]
[if]
[variable]
name=stored_Gruu_side.gold
greater_than=0
[/variable]
[then]
[gold]
side=1
amount=$stored_Gruu_side.gold
[/gold]
[gold]
side=4
amount=-$stored_Gruu_side.gold
[/gold]
[/then]
[/if]
{CLEAR_VARIABLE stored_Gruu_side}