Fixed scripts not using new spell info API
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user