Fix warlock entering in combat due to periodic damage

This commit is contained in:
Tercio Jose
2022-10-30 18:17:25 -03:00
parent 4a198c5996
commit 422e24b826
6 changed files with 103 additions and 13 deletions
+5
View File
@@ -940,6 +940,11 @@
(not _detalhes.in_group and who_flags and bitBand(who_flags, AFFILIATION_GROUP) ~= 0)
)
) then
--avoid Fel Armor and Undulating Maneuvers to start a combat
if ((spellid == 387846 or spellid == 352561) and who_name == _detalhes.playername) then
return
end
if (_detalhes.encounter_table.id and _detalhes.encounter_table["start"] >= GetTime() - 3 and _detalhes.announce_firsthit.enabled) then
local link
if (spellid <= 10) then