Skip to content

Commit 2cc055a

Browse files
committed
refactor: Remove redundant DoomPower check in NHealthBarForecastPatches
- Eliminated unnecessary check for DoomPower presence in the IsDoomLethalAfterRight method to simplify logic. - Streamlined the method to focus on the doom amount, enhancing clarity and maintainability.
1 parent 8fe8c5a commit 2cc055a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Combat/HealthBars/Patches/NHealthBarForecastPatches.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,6 @@ private static Color DarkenForOutline(Color color)
369369

370370
private static bool IsDoomLethalAfterRight(NHealthBar healthBar, Creature creature)
371371
{
372-
if (!creature.HasPower<DoomPower>())
373-
return false;
374-
375372
var doomAmount = creature.GetPowerAmount<DoomPower>();
376373
if (doomAmount <= 0)
377374
return false;

0 commit comments

Comments
 (0)