Skip to content

Commit

Permalink
Mage mode fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Jan 14, 2024
1 parent e41aa12 commit 784b197
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions class_configs/mag_class_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ _ClassConfig = {
name = "VolleyNuke",
type = "Spell",
cond = function(self, spell)
return RGMercUtils.IsModeActive("DPS")
return RGMercUtils.IsModeActive("Fire")
end,
},
{
Expand All @@ -1462,7 +1462,7 @@ _ClassConfig = {
name = "SpearNuke",
type = "Spell",
cond = function(self, spell)
return RGMercUtils.IsModeActive("DPS")
return RGMercUtils.IsModeActive("Fire")
end,
},
{
Expand All @@ -1476,7 +1476,7 @@ _ClassConfig = {
name = "SpearNuke2",
type = "Spell",
cond = function(self)
return RGMercUtils.IsModeActive("DPS") and RGMercUtils.BurnCheck()
return RGMercUtils.IsModeActive("Fire") and RGMercUtils.BurnCheck()
end,
},
{
Expand All @@ -1496,12 +1496,12 @@ _ClassConfig = {
{
name = "MagicNuke1",
type = "Spell",
cond = function(self) return mq.TLO.Me.Level() < 70 and RGMercUtils.IsModeActive("DPS") end,
cond = function(self) return mq.TLO.Me.Level() < 70 and RGMercUtils.IsModeActive("Fire") end,
},
{
name = "MagicNuke2",
type = "Spell",
cond = function(self) return mq.TLO.Me.Level() < 70 and RGMercUtils.IsModeActive("DPS") end,
cond = function(self) return mq.TLO.Me.Level() < 70 and RGMercUtils.IsModeActive("Fire") end,
},
{
name = "FireOrbItem",
Expand Down
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '1b56136 2024-01-13' }
return { commitId = 'e41aa12 2024-01-14' }
4 changes: 4 additions & 0 deletions modules/class.lua
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ end
---@param mode string
---@return boolean
function Module:IsModeActive(mode)
if self.ClassConfig.Modes[mode] == nil then
RGMercsLogger.log_error("\arIsModeActive(%s) ==> Invalid Mode Type!", mode)
return false
end
return Module:GetClassModeName():lower() == mode:lower()
end

Expand Down

0 comments on commit 784b197

Please sign in to comment.