wofsauge / Enhanced-Boss-Bars

A binding of Isaac mod that revamps everything around boss health bars
10 stars 5 forks source link

Boss bars are displayed even when EntityFlag.FLAG_DONT_COUNT_BOSS_HP is set to true #23

Closed Volensia closed 5 months ago

Volensia commented 5 months ago

Hey there, I'm the developer for the mod "Delirium Fix" and I use the EntityFlag "FLAG_DONT_COUNT_BOSS_HP" to hide the extra boss bars during the Delirium fight. It looks like this without the Enhanced Boss Bars mod: image

However, when the Enhanced Boss Bars mod is installed, it looks like this: image

I believe this is a bug because a boss with the flag FLAG_DONT_COUNT_BOSS_HP is supposed to hide the boss bar.

In order to fix this bug, you just have to change line 322 of main.lua to if (entity:IsBoss() and not HPBars:evaluateEntityIgnore(entity) or bossEntry) and not entity:HasEntityFlags(EntityFlag.FLAG_DONT_COUNT_BOSS_HP) then

And everything should look normal, like this: image

wofsauge commented 5 months ago

Thanks for the report. the bug should be fixed now :)