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

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r468 \cu(Fri 16 Sep 11:34:41 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r468 \cu(2022-09-16 11:34:41)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r469 \cu(Fri 16 Sep 16:53:56 CEST 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r469 \cu(2022-09-16 16:53:56)\c-";

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 )
{