Don't spawn healthbars for actors with NODAMAGE.
This commit is contained in:
parent
0110868314
commit
d55ee022d2
3 changed files with 4 additions and 3 deletions
|
|
@ -233,6 +233,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
|
||||
SWWMQuickCombatTracker t = null;
|
||||
for ( Inventory i=target.inv; i; i=i.inv )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ Class SWWMHandler : EventHandler
|
|||
{
|
||||
if ( !playeringame[j] ) continue;
|
||||
let t = SWWMQuickCombatTracker.Update(self,players[j],legtrack[i].Owner);
|
||||
if ( t.myplayer == players[consoleplayer] ) Console.Printf(StringTable.Localize("$SWWM_LTFORM"),t.mytag);
|
||||
if ( t && (t.myplayer == players[consoleplayer]) ) Console.Printf(StringTable.Localize("$SWWM_LTFORM"),t.mytag);
|
||||
}
|
||||
legtrack.Delete(i--);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue