We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cce00e0 commit 3fea9a7Copy full SHA for 3fea9a7
game/scripts/vscripts/items/azazel_tower_watch.lua
@@ -49,13 +49,13 @@ local SINK_HEIGHT = 200
49
local THINK_INTERVAL = 0.1
50
51
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
58
if IsServer() then
- local ability = self:GetAbility()
- if IsValidEntity(ability) then
- return
- end
- local level = ability:GetLevel()
- self.level = level
59
local target = self:GetParent()
60
local maxhealth = target:GetMaxHealth() + ability:GetSpecialValueFor("bonus_health")
61
local location = target:GetOrigin()
0 commit comments