Fixed scripts not using new spell info API
This commit is contained in:
@@ -802,7 +802,7 @@ end
|
|||||||
local spellId = @SPELLID@
|
local spellId = @SPELLID@
|
||||||
local spellName
|
local spellName
|
||||||
if (spellId) then
|
if (spellId) then
|
||||||
spellName = select(1, GetSpellInfo(spellId))
|
spellName = select(1, Details.GetSpellInfo(spellId))
|
||||||
end
|
end
|
||||||
|
|
||||||
---@type actorcontainer
|
---@type actorcontainer
|
||||||
@@ -860,7 +860,7 @@ end
|
|||||||
for playerName, friendlyFireTable in pairs(actorObject.friendlyfire) do
|
for playerName, friendlyFireTable in pairs(actorObject.friendlyfire) do
|
||||||
---@cast friendlyFireTable friendlyfiretable
|
---@cast friendlyFireTable friendlyfiretable
|
||||||
for ffSpellId, damageAmount in pairs(friendlyFireTable.spells) do
|
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
|
if (ffSpellName == spellName) then
|
||||||
---@type actordamage
|
---@type actordamage
|
||||||
local damageActor = damageContainer:GetActor(playerName)
|
local damageActor = damageContainer:GetActor(playerName)
|
||||||
@@ -935,7 +935,7 @@ end
|
|||||||
if (not bIsCustomSpell) then
|
if (not bIsCustomSpell) then
|
||||||
for thisSpellId, spellTable in pairs(actorObject.spells._ActorTable) do
|
for thisSpellId, spellTable in pairs(actorObject.spells._ActorTable) do
|
||||||
if (thisSpellId ~= spellId) then --this is invalid
|
if (thisSpellId ~= spellId) then --this is invalid
|
||||||
local spellname = select(1, GetSpellInfo(thisSpellId))
|
local spellname = select(1, Details.GetSpellInfo(thisSpellId))
|
||||||
if (spellname == spellName) then
|
if (spellname == spellName) then
|
||||||
for targetName, damageAmount in pairs(spellTable.targets) do
|
for targetName, damageAmount in pairs(spellTable.targets) do
|
||||||
local got = false
|
local got = false
|
||||||
|
|||||||
Reference in New Issue
Block a user