1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/scripts/lib/erm/MF_T.lua
2021-02-16 13:32:18 +03:00

16 lines
335 B
Lua

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)
o.sub = ApplyDamage.subscribeBefore(eventBus, function(event)
o:call(event)
end)
return o
end
return trigger