1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
vcmi/scripts/lib/erm/MF_T.lua

16 lines
335 B
Lua
Raw Normal View History

local TriggerBase = require("core:erm.TriggerBase")
local ApplyDamage = require("events.ApplyDamage")
local eventBus = EVENT_BUS;
local trigger = TriggerBase:new()
function trigger:new(o)
o = TriggerBase.new(self, o)
2021-02-15 16:16:41 +02:00
o.sub = ApplyDamage.subscribeBefore(eventBus, function(event)
o:call(event)
end)
return o
end
return trigger