Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/game/server/tf/halloween/spell/tf_spell_pickup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ bool CSpellPickup::ItemCanBeTouchedByPlayer( CBasePlayer *pPlayer )
if ( IsDisabled() )
return false;

// Dont let them pick up new spells if they already have a spell unless its a tier 1 spell
CTFPlayer *pTFPlayer = ToTFPlayer( pPlayer );
if ( pTFPlayer && m_nTier == 0 )
if ( pTFPlayer )
{
// Check for spellbook regardless of tier
CTFSpellBook *pSpellBook = dynamic_cast< CTFSpellBook* >( pTFPlayer->GetEntityForLoadoutSlot( LOADOUT_POSITION_ACTION ) );
if ( !pSpellBook )
{
Expand All @@ -81,7 +81,8 @@ bool CSpellPickup::ItemCanBeTouchedByPlayer( CBasePlayer *pPlayer )
return false;
}

if ( pSpellBook->HasASpellWithCharges() )
// Only check for existing charges on tier 0 spells
if ( m_nTier == 0 && pSpellBook->HasASpellWithCharges() )
{
return false;
}
Expand Down