From 56d0e102142f4937ce94e465703c81fae36222e3 Mon Sep 17 00:00:00 2001 From: aleartdev Date: Sat, 27 Jul 2024 14:31:28 -0400 Subject: [PATCH] changed --- scripts/ExampleModule.lua | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 scripts/ExampleModule.lua diff --git a/scripts/ExampleModule.lua b/scripts/ExampleModule.lua deleted file mode 100644 index 4289a24..0000000 --- a/scripts/ExampleModule.lua +++ /dev/null @@ -1,24 +0,0 @@ -local Tinkr, Bastion = ... -local ExampleModule = Bastion.Module:New('ExampleModule') -local Player = Bastion.UnitManager:Get('player') - --- Create a local spellbook -local SpellBook = Bastion.SpellBook:New() - -local FlashHeal = SpellBook:GetSpell(2061) - --- Get a global spell (this can collide with other modules, so be careful) --- This is useful for caching common spells that you might not actually cast, and to avoid needless spell creation inline -local FlashHeal = Bastion.Globals.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)