Extrem blöder Bug in Schneemann-Routine

This commit is contained in:
Enno Rehling 2006-02-12 23:37:56 +00:00
parent bcac3bc47a
commit 7d856b43da

View file

@ -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