From 5d04d6c2298de93bc9082c8eb83c198dd1d203f1 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sun, 4 Dec 2022 15:19:06 -0300 Subject: [PATCH] Double check for Astral Bomb explosion --- core/parser.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/core/parser.lua b/core/parser.lua index cb2c6fa9..aa56fa97 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -1304,12 +1304,12 @@ else if (bitfield_swap_cache [alvo_serial] or alvo_dono and bitfield_swap_cache [alvo_dono.serial]) then else + --Astral Nova explosion from Astral Bomb (Spectral Invoker - Algeth'ar Academy) should get friend zone here if ((jogador_alvo.grupo or alvo_dono and alvo_dono.grupo) and (este_jogador.grupo or meu_dono and meu_dono.grupo)) then is_friendly_fire = true end end end - else if ( (bitBand(alvo_flags, REACTION_FRIENDLY) ~= 0 and bitBand(who_flags, REACTION_FRIENDLY) ~= 0) or --ajdt d' brx @@ -1319,7 +1319,14 @@ end end - if (is_friendly_fire and spellid ~= SPELLID_KYRIAN_DRUID_TANK) then --kyrian spell remove on 10.0 + --double check for Astral Nova explosion + if (spellid == 387848 and not is_friendly_fire) then --/dumpt 387848 + if ((jogador_alvo.grupo or alvo_dono and alvo_dono.grupo) and (este_jogador.grupo or meu_dono and meu_dono.grupo)) then + is_friendly_fire = true + end + end + + if (is_friendly_fire and spellid ~= SPELLID_KYRIAN_DRUID_TANK) then --kyrian spell remove on 10.0 | need to check if this is in 10.0 if (este_jogador.grupo) then --se tiver ele n�o adiciona o evento l� em cima local t = last_events_cache[alvo_name]