Skip to content

Commit

Permalink
Fix of RAF word of power.
Browse files Browse the repository at this point in the history
The player's magic level was limited to 1 while the RAF "word of power"
was active; now the limitation has been lifted.
  • Loading branch information
Dimoks authored and dscharrer committed Mar 31, 2013
1 parent fec1180 commit 84d43e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/game/Spells.cpp
Expand Up @@ -2974,7 +2974,6 @@ bool ARX_SPELLS_Launch(Spell typ, long source, SpellcastFlags flagss, long level
if ( cur_rf == 3 )
{
flags |= SPELLCAST_FLAG_NOCHECKCANCAST | SPELLCAST_FLAG_NOMANA;
level += 2;
}

if ( sp_max )
Expand Down Expand Up @@ -3037,9 +3036,9 @@ bool ARX_SPELLS_Launch(Spell typ, long source, SpellcastFlags flagss, long level
return true;
}

if ( flags & SPELLCAST_FLAG_NOMANA )
if ( cur_rf == 3 )
{
Player_Magic_Level = static_cast<float>(level);
level += 2;
}

static TextureContainer * tc4 = TextureContainer::Load("graph/particles/smoke");
Expand Down

0 comments on commit 84d43e2

Please sign in to comment.