Disabled war

This commit is contained in:
shamoanjac 2016-08-27 16:22:44 +02:00
parent b882008c91
commit 134ef287af

View File

@ -392,7 +392,7 @@ function factions.Faction.is_online(self)
end end
function factions.Faction.attack_parcel(self, parcelpos) function factions.Faction.attack_parcel(self, parcelpos)
local attacked_faction = factions.get_parcel_faction(parcelpos) --[[ local attacked_faction = factions.get_parcel_faction(parcelpos)
if attacked_faction then if attacked_faction then
self.power = self.power - factions.power_per_attack self.power = self.power - factions.power_per_attack
if attacked_faction.attacked_parcels[parcelpos] then if attacked_faction.attacked_parcels[parcelpos] then
@ -406,6 +406,7 @@ function factions.Faction.attack_parcel(self, parcelpos)
end end
factions.save() factions.save()
end end
]]
end end
function factions.Faction.stop_attack(self, parcelpos) function factions.Faction.stop_attack(self, parcelpos)