Skip to content

Commit

Permalink
Fixed scripts not using new spell info API
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Aug 18, 2024
1 parent 6de6be1 commit a064b32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/class_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a064b32

Please sign in to comment.