Setting Details.playername cache as "player-realm" for 10.2
This commit is contained in:
+9
-2
@@ -2196,6 +2196,8 @@
|
||||
--10/30 15:34:47.249 SPELL_EMPOWER_START,Player-4184-0048EE5B,"Nezaland-Valdrakken",0x514,0x0,Player-4184-0048EE5B,"Nezaland-Valdrakken",0x514,0x0,382266,"Fire Breath",0x4
|
||||
--357209 damage spell is different from the spell cast
|
||||
|
||||
local playerNameWithRealm = UnitName("player") .."-".. GetRealmName()
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------
|
||||
--SUMMON serach key: ~summon |
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -2203,7 +2205,6 @@
|
||||
if (not sourceName) then
|
||||
sourceName = "[*] " .. spellName
|
||||
end
|
||||
|
||||
local npcId = tonumber(select(6, strsplit("-", petSerial)) or 0)
|
||||
|
||||
--differenciate army and apoc pets for DK
|
||||
@@ -6104,7 +6105,13 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
Details.in_combat = false
|
||||
Details.combat_id = 0
|
||||
Details.opened_windows = 0
|
||||
Details.playername = UnitName("player")
|
||||
|
||||
local _, _, _, toc = GetBuildInfo()
|
||||
if (toc >= 100200) then
|
||||
Details.playername = UnitName("player") .. "-" .. GetRealmName()
|
||||
else
|
||||
Details.playername = UnitName("player")
|
||||
end
|
||||
|
||||
--player faction and enemy faction
|
||||
Details.faction = UnitFactionGroup("player")
|
||||
|
||||
Reference in New Issue
Block a user