Don't give healthbars to moths.

This commit is contained in:
Mari the Deer 2022-09-16 16:53:56 +02:00
commit 445e79c88c
2 changed files with 3 additions and 2 deletions

View file

@ -234,6 +234,7 @@ Class SWWMQuickCombatTracker : Inventory
static SWWMQuickCombatTracker Update( SWWMHandler hnd, PlayerInfo p, Actor target, int damage = 0 )
{
if ( target.bNODAMAGE ) return null; // no-damage entities get no healthbars
if ( target is 'LampMoth' ) return null; // also don't give healthbars to moths
SWWMQuickCombatTracker t = null;
for ( Inventory i=target.inv; i; i=i.inv )
{