From a064b32a00c72941b4e81a30e45958e4e101ab32 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sun, 18 Aug 2024 17:34:24 -0300 Subject: [PATCH] Fixed scripts not using new spell info API --- classes/class_damage.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/class_damage.lua b/classes/class_damage.lua index a168cf32b..9557b0a97 100644 --- a/classes/class_damage.lua +++ b/classes/class_damage.lua @@ -808,7 +808,7 @@ end local spellId = @SPELLID@ local spellName if (spellId) then - spellName = select(1, GetSpellInfo(spellId)) + spellName = select(1, Details.GetSpellInfo(spellId)) end ---@type actorcontainer @@ -866,7 +866,7 @@ end for playerName, friendlyFireTable in pairs(actorObject.friendlyfire) do ---@cast friendlyFireTable friendlyfiretable for ffSpellId, damageAmount in pairs(friendlyFireTable.spells) do - local ffSpellName = select(1, GetSpellInfo(ffSpellId)) + local ffSpellName = select(1, Details.GetSpellInfo(ffSpellId)) if (ffSpellName == spellName) then ---@type actordamage local damageActor = damageContainer:GetActor(playerName) @@ -941,7 +941,7 @@ end if (not bIsCustomSpell) then for thisSpellId, spellTable in pairs(actorObject.spells._ActorTable) do if (thisSpellId ~= spellId) then --this is invalid - local spellname = select(1, GetSpellInfo(thisSpellId)) + local spellname = select(1, Details.GetSpellInfo(thisSpellId)) if (spellname == spellName) then for targetName, damageAmount in pairs(spellTable.targets) do local got = false