Items can now be taken from non colapsed POWs

This commit is contained in:
steph-pg
2026-07-02 19:16:55 +03:00
committed by Asdow
parent c61f57bd9b
commit ba64ed53c6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7035,7 +7035,7 @@ UINT8 StealItems(SOLDIERTYPE* pSoldier,SOLDIERTYPE* pOpponent, UINT8* ubIndexRet
if ((pObject->exists() == true) && !ItemIsUndroppableByDefault(pObject->usItem)) // CHECK! Undroppable items cannot be stolen - SANDRO
{
// Is the enemy collapsed
if ( pOpponent->stats.bLife < OKLIFE || pOpponent->bCollapsed )
if ( pOpponent->stats.bLife < OKLIFE || pOpponent->bCollapsed || (pOpponent->usSoldierFlagMask & SOLDIER_POW) )
{
// We can steal any of his items in the inventory
fStealItem = TRUE;