mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-10 03:51:28 +00:00
Update tf_weapon_spellbook.cpp
This commit is contained in:
parent
69b520e719
commit
cbbc68d609
1 changed files with 3 additions and 0 deletions
|
@ -1065,6 +1065,9 @@ void CTFSpellBook::CreateSpellJar( const Vector &position, const QAngle &angles,
|
|||
//-----------------------------------------------------------------------------
|
||||
void CTFSpellBook::RollNewSpell( int iTier, bool bForceReroll /*= false*/ )
|
||||
{
|
||||
if ( !TFGameRules()->IsUsingSpells() )
|
||||
return;
|
||||
|
||||
// do not do anything if we already have a spell for low tier, always roll for high tier
|
||||
if ( m_iSpellCharges > 0 && iTier == 0 && !bForceReroll )
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue