forked from Bastion/Bastion
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
411 B
17 lines
411 B
local Tinkr, Bastion = ...
|
|
local ExampleModule = Bastion.Module:New('ExampleModule')
|
|
local Player = Bastion.UnitManager:Get('player')
|
|
|
|
local FlashHeal = Bastion.SpellBook:GetSpell(2061)
|
|
|
|
local AdvancedMath = Bastion:Import('AdvancedMath')
|
|
|
|
print(AdvancedMath:Add(1, 2))
|
|
|
|
ExampleModule:Sync(function()
|
|
if Player:GetHP() <= 50 then
|
|
FlashHeal:Cast(Player)
|
|
end
|
|
end)
|
|
|
|
Bastion:Register(ExampleModule)
|
|
|