server/src/scripts/eternath.lua

21 lines
387 B
Lua
Raw Normal View History

if gate_travel==nil then
2005-01-03 22:28:57 +01:00
dofile("gates.lua")
end
local function eternath_exchange(b1, b2, size)
local units1 = gate_units(b1, size)
local units2 = gate_units(b2, size)
2004-07-13 13:48:16 +02:00
gate_travel(b2, units1)
gate_travel(b1, units2)
2004-07-13 13:48:16 +02:00
end
function eternathgate_action(b)
if eternathgate == nil then
eternathgate = b
else
2005-01-03 22:28:57 +01:00
eternath_exchange(eternathgate, b, 10)
2004-07-13 13:48:16 +02:00
end
return 1
end