Skip to content

Commit

Permalink
KAge Loading fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nandor committed Jan 10, 2024
1 parent 1bd7f42 commit 9d2fdd8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
20 changes: 10 additions & 10 deletions class_configs/mag_class_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ _ClassConfig = {
name = "SelfManaRodSummon",
type = "Spell",
cond = function(self, spell)
return mq.TLO.FindItemCount(spell.Base(1)() or "") == 0 and (mq.TLO.Cursor.ID() or 0) == 0
return mq.TLO.FindItemCount(spell.Base(1) or "") == 0 and (mq.TLO.Cursor.ID() or 0) == 0
end,
},
{
Expand Down Expand Up @@ -1576,21 +1576,21 @@ _ClassConfig = {
name = "FireOrbSummon",
type = "Spell",
cond = function(self, spell)
return mq.TLO.FindItemCount(spell.Base(1).Name() or "") == 0
return mq.TLO.FindItemCount(spell.Base(1) or "") == 0
end,
},
{
name = "EarthPetItemSummon",
type = "Spell",
cond = function(self, spell)
return mq.TLO.FindItemCount(spell.Base(1).Name() or "") == 0
return mq.TLO.FindItemCount(spell.Base(1) or "") == 0
end,
},
{
name = "FirePetItemSummon",
type = "Spell",
cond = function(self, spell)
return mq.TLO.FindItemCount(spell.Base(1).Name() or "") == 0
return mq.TLO.FindItemCount(spell.Base(1) or "") == 0
end,
},
{
Expand All @@ -1604,7 +1604,7 @@ _ClassConfig = {
name = "PetManaConv",
type = "Spell",
cond = function(self, spell)
return RGMercUtils.BuffActiveByName(mq.TLO.Spell(spell.AutoCast()() or "").Name() or "") and mq.TLO.Me.Pet.ID() > 0
return RGMercUtils.BuffActiveByName(mq.TLO.Spell(spell.AutoCast() or "").Name() or "") and mq.TLO.Me.Pet.ID() > 0
end,
},
{
Expand Down Expand Up @@ -1737,7 +1737,7 @@ _ClassConfig = {
name = "SelfManaRodSummon",
type = "Spell",
cond = function(self, spell)
return mq.TLO.FindItemCount(spell.Base(1)() or "") == 0 and (mq.TLO.Cursor.ID() or 0) == 0
return mq.TLO.FindItemCount(spell.Base(1) or "") == 0 and (mq.TLO.Cursor.ID() or 0) == 0
end,
},
{
Expand Down Expand Up @@ -1772,21 +1772,21 @@ _ClassConfig = {
name = "FireOrbSummon",
type = "Spell",
cond = function(self, spell)
return mq.TLO.FindItemCount(spell.Base(1).Name() or "") == 0
return mq.TLO.FindItemCount(spell.Base(1) or "") == 0
end,
},
{
name = "EarthPetItemSummon",
type = "Spell",
cond = function(self, spell)
return mq.TLO.FindItemCount(spell.Base(1).Name() or "") == 0
return mq.TLO.FindItemCount(spell.Base(1) or "") == 0
end,
},
{
name = "FirePetItemSummon",
type = "Spell",
cond = function(self, spell)
return mq.TLO.FindItemCount(spell.Base(1).Name() or "") == 0
return mq.TLO.FindItemCount(spell.Base(1) or "") == 0
end,
},
{
Expand All @@ -1800,7 +1800,7 @@ _ClassConfig = {
name = "PetManaConv",
type = "Spell",
cond = function(self, spell)
return RGMercUtils.BuffActiveByName(mq.TLO.Spell(spell.AutoCast()() or "").Name() or "") and mq.TLO.Me.Pet.ID() > 0
return RGMercUtils.BuffActiveByName(mq.TLO.Spell(spell.AutoCast() or "").Name() or "") and mq.TLO.Me.Pet.ID() > 0
end,
},
{
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 = '7fe6ee1 2024-01-10' }
return { commitId = '1bd7f42 2024-01-10' }
6 changes: 2 additions & 4 deletions utils/rgmercs_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,7 @@ function Utils.GetBestSpell(spellList, alreadyResolvedMap)
-- make sure we havent already found this one.
local alreadyUsed = false
for unresolvedName, resolvedSpell in pairs(alreadyResolvedMap) do
RGMercsLogger.log_debug("Checking if unresolvedItem(%s) with spell(%s) matches new spell(%s)",
unresolvedName, resolvedSpell() or "None", spell() or "None")
if resolvedSpell.ID() == spell.ID() then
if type(resolvedSpell) ~= string and resolvedSpell.ID() == spell.ID() then
alreadyUsed = true
end
end
Expand All @@ -319,7 +317,7 @@ function Utils.GetBestSpell(spellList, alreadyResolvedMap)
end
else
Utils.PrintGroupMessage(string.format(
"%s \aw [%s] \ax \ar ! MISSING SPELL ! \ax -- \ag %s \ax -- \aw LVL: %d \ax", mq.TLO.Me.CleanName(), s,
"%s \aw [%s] \ax \ar ! MISSING SPELL ! \ax -- \ag %s \ax -- \aw LVL: %d \ax", mq.TLO.Me.CleanName(), spellName,
spell.RankName(), spell.Level()))
end
end
Expand Down

0 comments on commit 9d2fdd8

Please sign in to comment.