From 38921be05ad97f53d62254362f6132e004db94ab Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Tue, 15 Dec 2020 15:56:23 -0300 Subject: [PATCH] Druid Kyrian DPS Kindred Spirits --- core/parser.lua | 103 +++++++++++++++++++++++++----------------------- 1 file changed, 53 insertions(+), 50 deletions(-) diff --git a/core/parser.lua b/core/parser.lua index 9f06e3f8..36f4e472 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -107,6 +107,8 @@ local ignore_death = {} --> temp ignored local ignore_actors = {} + --> druids kyrian bounds + local druid_kyrian_bounds = {} --> spell containers for special cases local monk_guard_talent = {} --guard talent for bm monks --> spell reflection @@ -256,15 +258,10 @@ local SPELLID_SHAMAN_SLT = 98021 --> holy paladin light of the martyr local SPELLID_PALADIN_LIGHTMARTYR = 196917 - --> blood shield g'huun - local SPELLNAME_BLOODSHIELD = GetSpellInfo (263217) - --> unliving Bwonsamdi - local SPELLNAME_UNLIVING = GetSpellInfo (284377) - --> discharge apetagonizer core - local SPELLNAME_GRONG_CORE = GetSpellInfo (285660) - local SPELLNAME_GRONG_CORE_ALLIANCE = GetSpellInfo (286435) - --> storm of annihilation - local SPELLANAME_STORM_OF_ANNIHILATION = GetSpellInfo (284601) + --> druid kyrian bound spirits + local SPELLID_KYRIAN_DRUID = 326434 + --> druid kyrian bound damage + local SPELLID_KYRIAN_DRUID_DAMAGE = 338411 --> spells with special treatment local special_damage_spells = { @@ -450,24 +447,6 @@ end ---[=[ -[1]="Blood Shield", -[2]=538744, -[3]=0, -[5]=0, -[6]=0, -[7]="nameplate12", -[8]=false, -[9]=false, -[10]=263217, -[11]=false, -[12]=false, -[13]=false, -[14]=false, -[15]=1 ---]=] - - function parser:spell_dmg (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spelltype, amount, overkill, school, resisted, blocked, absorbed, critical, glacing, crushing, isoffhand, isreflected) ------------------------------------------------------------------------------------------------ @@ -502,6 +481,13 @@ -- return --end + if (spellid == SPELLID_KYRIAN_DRUID_DAMAGE) then + local ownerTable = druid_kyrian_bounds[who_name] + if (ownerTable) then + who_serial, who_name, who_flags = unpack(ownerTable) + end + end + ------------------------------------------------------------------------------------------------ --> spell reflection if (who_serial == alvo_serial and not reflection_ignore[spellid]) then --~reflect @@ -596,6 +582,8 @@ return parser:LOTM_damage (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spelltype, amount, overkill, school, resisted, blocked, absorbed, critical, glacing, crushing, isoffhand) end end + + ------------------------------------------------------------------------------------------------ --> check if need start an combat @@ -2044,6 +2032,33 @@ } end + ------------------------------------------------------------------------------------------------ + --> + +--[=[ +--druid_kyrian_bounds + +--damager on damager + +SPELL_CAST_SUCCESS,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,326434,"Kindred Spirits",0x40,Player-3209-065BAEDE,0000000000000000,28240,28240,1233,448,472,0,0,10000,10000,200,-3298.34,5440.53,1525,5.8081,177 +SPELL_AURA_APPLIED,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,326434,"Kindred Spirits",0x40,BUFF +SPELL_AURA_REMOVED,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,326434,"Kindred Spirits",0x40,BUFF + +12/15 10:03:51.702 SPELL_CAST_SUCCESS,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,0000000000000000,nil,0x80000000,0x80000000,326446,"Empower Bond",0x40,Player-3209-065BAEDE,0000000000000000,28240,28240,1234,448,472,0,3,100,100,0,-3294.17,5437.12,1525,0.7611,177 + +12/15 10:03:51.702 SPELL_AURA_APPLIED,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,327139,"Kindred Empowerment",0x40,BUFF +12/15 10:03:51.702 SPELL_AURA_APPLIED,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,327022,"Kindred Empowerment",0x40,BUFF,1 +12/15 10:03:51.702 SPELL_AURA_APPLIED,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,327139,"Kindred Empowerment",0x40,BUFF +12/15 10:03:51.702 SPELL_AURA_APPLIED,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,327022,"Kindred Empowerment",0x40,BUFF,1 + +SPELL_DAMAGE,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,Creature-0-4217-2222-22679-166718-000058B14F,"Manifestation of Envy",0x10a48,0x0,338411,"Kindred Empowerment",0x40,Creature-0-4217-2222-22679-166718-000058B14F,0000000000000000,4218,5895,0,0,651,0,0,2289,2289,0,-3290.46,5445.37,1525,4.1809,58,31,30,-1,64,0,0,0,nil,nil,nil +SPELL_DAMAGE,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,Creature-0-4217-2222-22679-166718-000058B14F,"Manifestation of Envy",0x10a48,0x0,338411,"Kindred Empowerment",0x40,Creature-0-4217-2222-22679-166718-000058B14F,0000000000000000,867,5895,0,0,651,0,0,2289,2289,0,-3289.84,5446.94,1525,4.3379,58,89,89,-1,64,0,0,0,nil,nil,nil + +12/15 10:04:01.739 SPELL_AURA_REMOVED,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,327139,"Kindred Empowerment",0x40,BUFF +12/15 10:04:01.739 SPELL_AURA_REMOVED,Player-3209-065BAEDE,"Bullcéfalo-Azralon",0x512,0x0,Player-3209-0A79112C,"Symantec-Azralon",0x511,0x0,327139,"Kindred Empowerment",0x40,BUFF + +--]=] + ------------------------------------------------------------------------------------------------ --> handle shields @@ -2425,6 +2440,7 @@ end end + -- ~unbuff function parser:unbuff (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spellschool, tipo, amount) ------------------------------------------------------------------------------------------------ @@ -2451,6 +2467,11 @@ parser:heal (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spellschool, damage_prevented, _math_ceil (amount or 0), 0, 0, true) end end + + --druid kyrian empower bounds (9.0 kyrian covenant - probably remove on 10.0) + if (spellid == SPELLID_KYRIAN_DRUID and alvo_name) then + druid_kyrian_bounds[alvo_name] = nil + end ------------------------------------------------------------------------------------------------ --> healing done (shields) @@ -3329,6 +3350,11 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 who_name = "[*] " .. spellname end + --druid kyrian empower bounds (9.0 kyrian covenant - probably remove on 10.0) + if (spellid == SPELLID_KYRIAN_DRUID and alvo_name) then + druid_kyrian_bounds[alvo_name] = {who_serial, who_name, who_flags} + end + ------------------------------------------------------------------------------------------------ --> get actors @@ -3398,29 +3424,6 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 este_jogador = _current_damage_container:PegarCombatente (who_serial, who_name, who_flags, true) end ---[[ -Message: Interface\AddOns\Details\core\parser.lua:3418: attempt to index local 'este_jogador' (a nil value) -Time: Sun Aug 30 15:43:58 2020 -Count: 39 -Stack: Interface\AddOns\Details\core\parser.lua:3418: attempt to index local 'este_jogador' (a nil value) -[string "@Interface\AddOns\Details\core\parser.lua"]:3418: in function -[string "=(tail call)"]: ? - -Locals: self = nil -token = "SPELL_CAST_SUCCESS" -time = 1598813037.261000 -who_serial = "Vehicle-0-2085-2296-4034-168406-000B4BF36E" -who_name = "Waltzing Venthyr" -who_flags = 2632 -alvo_serial = "" -alvo_name = nil -alvo_flags = -2147483648 -alvo_flags2 = -2147483648 -spellid = 335773 -spellname = "Waltzing Venthyr" -spelltype = 1 ---]] - if (este_jogador) then --> actor spells table local spell = este_jogador.spells._ActorTable [spellid] --line where the actor was nil