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.
18 lines
415 B
18 lines
415 B
1 year ago
|
local Tinkr, Bastion = ...
|
||
|
local ExampleModule = Bastion.Module:New('ExampleModule')
|
||
|
local Player = Bastion.UnitManager:Get('player')
|
||
|
|
||
|
local FlashHeal = Bastion.SpellBook:GetSpell(2061)
|
||
|
|
||
|
local AdvancedMath = Bastion:GetLibrary('AdvancedMath')
|
||
|
|
||
|
print(AdvancedMath:Add(1, 2))
|
||
|
|
||
|
ExampleModule:Sync(function()
|
||
|
if Player:GetHP() <= 50 then
|
||
|
FlashHeal:Cast(Player)
|
||
|
end
|
||
|
end)
|
||
|
|
||
|
Bastion:Register(ExampleModule)
|