server/scripts/eressea/eternath.lua

19 lines
352 B
Lua
Raw Normal View History

2010-08-08 09:40:42 +02:00
require "gates"
local function eternath_exchange(b1, b2, size)
local units1 = gate_units(b1, size)
local units2 = gate_units(b2, size)
gate_travel(b2, units1)
gate_travel(b1, units2)
end
function eternathgate_action(b)
if eternathgate == nil then
eternathgate = b
else
eternath_exchange(eternathgate, b, 10)
end
return 1
end