Skip to content

Commit

Permalink
Check if shields are present
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Oct 28, 2024
1 parent 17d9464 commit 8dfde00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/combat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,10 @@ int32_t objDamage(BASE_OBJECT *psObj, unsigned damage, unsigned originalhp, WEAP
{
DROID *psDroid = castDroid(psObj);

// EMP weapons kills droid shields completely
psDroid->shieldPoints = 0;
if (psDroid->shieldPoints != -1) {
// EMP weapons kills droid shields completely
psDroid->shieldPoints = 0;
}
}
return 0;
}
Expand Down

0 comments on commit 8dfde00

Please sign in to comment.