forked from github/server
Extrem blöder Bug in Schneemann-Routine
This commit is contained in:
parent
bcac3bc47a
commit
7d856b43da
1 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
function use_snowman(u, amount)
|
||||
if u.region.terrain == "glacier" then
|
||||
local man = add_unit(u.faction, u.region)
|
||||
u.race = "snowman"
|
||||
u.number = amount
|
||||
u:add_item("snowman", -amount)
|
||||
man.race = "snowman"
|
||||
man.number = amount
|
||||
man:add_item("snowman", -amount)
|
||||
return 0
|
||||
end
|
||||
return -4
|
||||
|
|
Loading…
Reference in a new issue