Double check for Astral Bomb explosion

This commit is contained in:
Tercio Jose
2022-12-04 15:19:06 -03:00
parent 85f18dddd4
commit 5d04d6c229
+9 -2
View File
@@ -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 no adiciona o evento l em cima
local t = last_events_cache[alvo_name]