WC2: make era usable for PvP

still disabled though
This commit is contained in:
Severin Glöckner 2021-10-20 23:56:29 +02:00
parent dd4116f740
commit 6d29cd7d07
2 changed files with 6 additions and 2 deletions

View file

@ -357,8 +357,11 @@ wc2_utils.menu_item {
if not wc2_era.get_faction(wesnoth.interface.get_viewing_side()) then
return false
end
if wc2_artifacts.is_item_at(x, y) then
return false
-- check whether wc2_artifacts is loaded
if wml.variables.wc2_scenario then
if wc2_artifacts.is_item_at(x, y) then
return false
end
end
return true
end,

View file

@ -1,4 +1,5 @@
-- the main file for the WC2 mp era
wc2_utils = wesnoth.require('./game_mechanics/utils.lua')
wc2_color = wesnoth.require('./game_mechanics/color.lua')
wc2_era = wesnoth.require('./era/era.lua')