Fixed scripts not using new spell info API

This commit is contained in:
Tercio Jose
2024-08-18 17:34:24 -03:00
committed by andrew6180
parent 0897550b1b
commit 3e7a7fe162
+3 -3
View File
@@ -802,7 +802,7 @@ end
local spellId = @SPELLID@
local spellName
if (spellId) then
spellName = select(1, GetSpellInfo(spellId))
spellName = select(1, Details.GetSpellInfo(spellId))
end
---@type actorcontainer
@@ -860,7 +860,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)
@@ -935,7 +935,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