Skip to content

Commit

Permalink
Double check for Astral Bomb explosion
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Dec 4, 2022
1 parent 85f18dd commit 5d04d6c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]

Expand Down

0 comments on commit 5d04d6c

Please sign in to comment.