File size: 814 Bytes
b6a38d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- ========== GENERATED BY CharacterEffectCompositeDef Editor DO NOT EDIT MANUALLY! ==========

PlaceObj('CharacterEffectCompositeDef', {
	'Group', "System",
	'Id', "Darkness",
	'object_class', "CharacterEffect",
	'unit_reactions', {
		PlaceObj('UnitReaction', {
			Event = "OnUnitEnterMapVisual",
			Handler = function (self, target)
				target:SetHighlightReason("darkness", true)
			end,
		}),
	},
	'DisplayName', T(770333565093, --[[CharacterEffectCompositeDef Darkness DisplayName]] "In Darkness"),
	'Description', "",
	'OnAdded', function (self, obj)
		if IsKindOf(obj, "Unit") then
			obj:SetHighlightReason("darkness", true)
		end
	end,
	'OnRemoved', function (self, obj)
		if IsKindOf(obj, "Unit") then
			obj:SetHighlightReason("darkness", nil)
		end
	end,
	'Icon', "UI/Hud/Status effects/darkness",
})