@@ -2015,20 +2015,22 @@ end
2015
2015
2016
2016
2017
2017
if (_recording_buffs_and_debuffs ) then
2018
- if (who_name == alvo_name and raid_members_cache [who_serial ] and _in_combat ) then
2019
- -- if(raid_members_cache[who_serial] and _in_combat) then
2020
- -- print(who_serial)
2021
- -- > call record buffs uptime
2022
- -- print(spellname, "BUFF_UPTIME_IN")
2023
- parser :add_buff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_IN" )
2024
-
2025
- elseif (container_pets [who_serial ] and container_pets [who_serial ][2 ] == alvo_serial ) then
2026
- -- um pet colocando uma aura do dono
2027
- parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_IN" )
2028
- elseif (buffs_to_other_players [spellid ]) then
2029
- parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_IN" )
2030
- elseif true then
2018
+ if _detalhes .SirusCustom .WriteAllAuras then
2031
2019
parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_IN" )
2020
+ else
2021
+ if (who_name == alvo_name and raid_members_cache [who_serial ] and _in_combat ) then
2022
+ -- if(raid_members_cache[who_serial] and _in_combat) then
2023
+ -- print(who_serial)
2024
+ -- > call record buffs uptime
2025
+ -- print(spellname, "BUFF_UPTIME_IN")
2026
+ parser :add_buff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_IN" )
2027
+
2028
+ elseif (container_pets [who_serial ] and container_pets [who_serial ][2 ] == alvo_serial ) then
2029
+ -- um pet colocando uma aura do dono
2030
+ parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_IN" )
2031
+ elseif (buffs_to_other_players [spellid ]) then
2032
+ parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_IN" )
2033
+ end
2032
2034
end
2033
2035
end
2034
2036
@@ -2073,16 +2075,17 @@ end
2073
2075
if (bitfield_debuffs [spellname ] and raid_members_cache [alvo_serial ]) then
2074
2076
bitfield_swap_cache [alvo_serial ] = true
2075
2077
end
2076
-
2077
- -- if(raid_members_cache[who_serial]) then
2078
- -- --> call record debuffs uptime
2079
- -- parser:add_debuff_uptime(token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, "DEBUFF_UPTIME_IN")
2080
-
2081
- -- elseif(raid_members_cache[alvo_serial] and not raid_members_cache[who_serial]) then --> alvo � da raide e who � alguem de fora da raide
2082
- -- parser:add_bad_debuff_uptime(token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spellschool, "DEBUFF_UPTIME_IN")
2083
- if true then
2078
+ if _detalhes .SirusCustom .WriteAllAuras then
2084
2079
parser :add_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " DEBUFF_UPTIME_IN" )
2085
2080
parser :add_bad_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , spellschool , " DEBUFF_UPTIME_IN" )
2081
+ else
2082
+ if (raid_members_cache [who_serial ]) then
2083
+ -- > call record debuffs uptime
2084
+ parser :add_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " DEBUFF_UPTIME_IN" )
2085
+
2086
+ elseif (raid_members_cache [alvo_serial ] and not raid_members_cache [who_serial ]) then -- > alvo � da raide e who � alguem de fora da raide
2087
+ parser :add_bad_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , spellschool , " DEBUFF_UPTIME_IN" )
2088
+ end
2086
2089
end
2087
2090
end
2088
2091
@@ -2282,17 +2285,19 @@ function parser:buff_refresh(token, time, who_serial, who_name, who_flags, alvo_
2282
2285
---- --------------------------------------------------------------------------------------------
2283
2286
-- > buff uptime
2284
2287
if (_recording_buffs_and_debuffs ) then
2285
- if (who_name == alvo_name and raid_members_cache [who_serial ] and _in_combat ) then
2286
- -- if( raid_members_cache[who_serial] and _in_combat) then
2287
- -- > call record buffs uptime
2288
- parser :add_buff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_REFRESH" )
2289
- elseif (container_pets [who_serial ] and container_pets [who_serial ][2 ] == alvo_serial ) then
2290
- -- um pet colocando uma aura do dono
2291
- parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_REFRESH" )
2292
- elseif (buffs_to_other_players [spellid ]) then --- CHECK
2293
- parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_REFRESH" )
2294
- elseif true then
2288
+ if _detalhes .SirusCustom .WriteAllAuras then
2295
2289
parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_REFRESH" )
2290
+ else
2291
+ if (who_name == alvo_name and raid_members_cache [who_serial ] and _in_combat ) then
2292
+ -- if( raid_members_cache[who_serial] and _in_combat) then
2293
+ -- > call record buffs uptime
2294
+ parser :add_buff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_REFRESH" )
2295
+ elseif (container_pets [who_serial ] and container_pets [who_serial ][2 ] == alvo_serial ) then
2296
+ -- um pet colocando uma aura do dono
2297
+ parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_REFRESH" )
2298
+ elseif (buffs_to_other_players [spellid ]) then --- CHECK
2299
+ parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_REFRESH" )
2300
+ end
2296
2301
end
2297
2302
end
2298
2303
@@ -2332,14 +2337,16 @@ function parser:buff_refresh(token, time, who_serial, who_name, who_flags, alvo_
2332
2337
---- --------------------------------------------------------------------------------------------
2333
2338
-- > buff uptime
2334
2339
if (_recording_buffs_and_debuffs ) then
2335
- -- if(raid_members_cache[who_serial]) then
2336
- -- --> call record debuffs uptime
2337
- -- parser:add_debuff_uptime(token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, "DEBUFF_UPTIME_REFRESH")
2338
- -- elseif(raid_members_cache[alvo_serial] and not raid_members_cache[who_serial]) then --> alvo � da raide e o caster � inimigo
2339
- -- parser:add_bad_debuff_uptime(token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spellschool, "DEBUFF_UPTIME_REFRESH", amount)
2340
- if true then
2340
+ if _detalhes .SirusCustom .WriteAllAuras then
2341
2341
parser :add_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " DEBUFF_UPTIME_REFRESH" )
2342
2342
parser :add_bad_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , spellschool , " DEBUFF_UPTIME_REFRESH" , amount )
2343
+ else
2344
+ if (raid_members_cache [who_serial ]) then
2345
+ -- > call record debuffs uptime
2346
+ parser :add_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " DEBUFF_UPTIME_REFRESH" )
2347
+ elseif (raid_members_cache [alvo_serial ] and not raid_members_cache [who_serial ]) then -- > alvo � da raide e o caster � inimigo
2348
+ parser :add_bad_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , spellschool , " DEBUFF_UPTIME_REFRESH" , amount )
2349
+ end
2343
2350
end
2344
2351
end
2345
2352
@@ -2415,6 +2422,9 @@ function parser:unbuff(token, time, who_serial, who_name, who_flags, alvo_serial
2415
2422
-- print(token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spellschool, tipo, amount)
2416
2423
---- --------------------------------------------------------------------------------------------
2417
2424
-- > handle shields
2425
+ if alvo_name == nil then
2426
+ alvo_name = UNKNOWN ;
2427
+ end
2418
2428
if absorb_spell_list [spellid ] then
2419
2429
escudo [alvo_name ] = escudo [alvo_name ] or {}
2420
2430
-- locate buff
@@ -2432,17 +2442,20 @@ end
2432
2442
---- --------------------------------------------------------------------------------------------
2433
2443
-- > buff uptime
2434
2444
if (_recording_buffs_and_debuffs ) then
2435
- if (who_name == alvo_name and raid_members_cache [who_serial ] and _in_combat ) then
2436
- -- if(raid_members_cache[who_serial] and _in_combat) then
2437
- -- > call record buffs uptime
2438
- parser :add_buff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_OUT" )
2439
- elseif (container_pets [who_serial ] and container_pets [who_serial ][2 ] == alvo_serial ) then
2440
- -- um pet colocando uma aura do dono
2441
- parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_OUT" )
2442
- elseif (buffs_to_other_players [spellid ]) then --- TODO fxpw
2443
- parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_OUT" )
2444
- elseif true then
2445
+ if _detalhes .SirusCustom .WriteAllAuras then
2445
2446
parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_OUT" )
2447
+ else
2448
+ if (who_name == alvo_name and raid_members_cache [who_serial ] and _in_combat ) then
2449
+ -- if(raid_members_cache[who_serial] and _in_combat) then
2450
+ -- > call record buffs uptime
2451
+ parser :add_buff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_OUT" )
2452
+ elseif (container_pets [who_serial ] and container_pets [who_serial ][2 ] == alvo_serial ) then
2453
+ -- um pet colocando uma aura do dono
2454
+ parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_OUT" )
2455
+ elseif (buffs_to_other_players [spellid ]) then --- TODO fxpw
2456
+ parser :add_buff_uptime (token , time , alvo_serial , alvo_name , alvo_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " BUFF_UPTIME_OUT" )
2457
+ end
2458
+
2446
2459
end
2447
2460
end
2448
2461
@@ -2528,14 +2541,17 @@ end
2528
2541
---- --------------------------------------------------------------------------------------------
2529
2542
-- > buff uptime
2530
2543
if (_recording_buffs_and_debuffs ) then
2531
- -- if(raid_members_cache[who_serial]) then
2532
- -- --> call record debuffs uptime
2533
- -- parser:add_debuff_uptime(token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, "DEBUFF_UPTIME_OUT")
2534
- -- elseif(raid_members_cache[alvo_serial] and not raid_members_cache[who_serial]) then --> alvo � da raide e o caster � inimigo
2535
- -- parser:add_bad_debuff_uptime(token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spellschool, "DEBUFF_UPTIME_OUT")
2536
- if true then
2544
+
2545
+ if _detalhes .SirusCustom .WriteAllAuras then
2537
2546
parser :add_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " DEBUFF_UPTIME_OUT" )
2538
2547
parser :add_bad_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , spellschool , " DEBUFF_UPTIME_OUT" )
2548
+ else
2549
+ if (raid_members_cache [who_serial ]) then
2550
+ -- > call record debuffs uptime
2551
+ parser :add_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , " DEBUFF_UPTIME_OUT" )
2552
+ elseif (raid_members_cache [alvo_serial ] and not raid_members_cache [who_serial ]) then -- > alvo � da raide e o caster � inimigo
2553
+ parser :add_bad_debuff_uptime (token , time , who_serial , who_name , who_flags , alvo_serial , alvo_name , alvo_flags , spellid , spellname , spellschool , " DEBUFF_UPTIME_OUT" )
2554
+ end
2539
2555
end
2540
2556
end
2541
2557
0 commit comments