Skip to content

Commit

Permalink
fix tech weapons requiring ability to hack rather than ability to use…
Browse files Browse the repository at this point in the history
… tech weapons
  • Loading branch information
BenLubar committed Aug 1, 2023
1 parent 8907a4d commit 07249ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/shared/swarm/asw_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6005,7 +6005,7 @@ bool CAlienSwarm::MarineCanPickup( CASW_Marine_Resource *pMarineResource, const
if ( bCheckRestriction )
{
// check various class skills
if ( pItem->m_iRequiredClass == MARINE_CLASS_TECH && !pProfile->CanHack() )
if ( pItem->m_iRequiredClass == MARINE_CLASS_TECH && !pProfile->CanUseTechWeapons() )
{
V_strncpy( m_szPickupDenial, "#asw_requires_tech", sizeof( m_szPickupDenial ) );
return false;
Expand Down

0 comments on commit 07249ef

Please sign in to comment.