Skip to content

Commit 3fea9a7

Browse files
committed
change the server scope for the watch tower
1 parent cce00e0 commit 3fea9a7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

game/scripts/vscripts/items/azazel_tower_watch.lua

+6-6
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ local SINK_HEIGHT = 200
4949
local THINK_INTERVAL = 0.1
5050

5151
function modifier_watch_tower_construction:OnCreated()
52+
local ability = self:GetAbility()
53+
if IsValidEntity(ability) then
54+
return
55+
end
56+
local level = ability:GetLevel()
57+
self.level = level
5258
if IsServer() then
53-
local ability = self:GetAbility()
54-
if IsValidEntity(ability) then
55-
return
56-
end
57-
local level = ability:GetLevel()
58-
self.level = level
5959
local target = self:GetParent()
6060
local maxhealth = target:GetMaxHealth() + ability:GetSpecialValueFor("bonus_health")
6161
local location = target:GetOrigin()

0 commit comments

Comments
 (0)