From f438ea25dab4aa04c5a76f9c0bddeeb3f090d897 Mon Sep 17 00:00:00 2001 From: Daniel Hazzard <20212218+DanielHazzard@users.noreply.github.com> Date: Wed, 25 Mar 2020 22:13:42 +0000 Subject: [PATCH] Update AutoBurst.lua --- AutoBurst/AutoBurst.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AutoBurst/AutoBurst.lua b/AutoBurst/AutoBurst.lua index 9c4114e..6adbd98 100644 --- a/AutoBurst/AutoBurst.lua +++ b/AutoBurst/AutoBurst.lua @@ -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" @@ -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])