Skip to content

Commit

Permalink
Update AutoBurst.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHazzard authored Mar 25, 2020
1 parent 87caa25 commit f438ea2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AutoBurst/AutoBurst.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_addon.name = "AutoBurst"
_addon.author = "Daniel_H"
_addon.version = "1.3 Ashita"
_addon.version = "1.2 Ashita"
_addon_description = ""

require "common"
Expand Down Expand Up @@ -143,9 +143,9 @@ end
function CanUseSpell(spell_name)
SpellData = resources:GetSpellByName(spell_name, 0)
JobID = player:GetMainJob()
DebugMessage("Checking data on the spell: " .. spell_name)
DebugMessage("Checking data on the spell: " .. spell_name .. " Current MP: " .. party:GetMemberCurrentMP(0))
ThreeLetterJob = JobIDs[JobID]
if party:GetMemberCurrentMP(0) <= SpellData.ManaCost then
if party:GetMemberCurrentMP(0) > SpellData.ManaCost then
DebugMessage("MP check has passed for the spell, " .. spell_name)
if SpellData.LevelRequired[JobID] ~= nil then
DebugMessage("Level required for the JOB: " .. ThreeLetterJob .. " " .. spell_name .. " " .. SpellData.LevelRequired[JobID])
Expand Down

0 comments on commit f438ea2

Please sign in to comment.