summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-05 22:03:07 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-05 22:03:07 +1000
commit504bcf4bd3bc5297ca3c508193d7590bae6c1836 (patch)
treef80a50efbea21577b6db8e5dabfd36aa876b090d /crawl-ref/source/spl-util.cc
parentfc0e79dabbc83e24ac32461ab67cdd1cef765e91 (diff)
downloadcrawl-ref-504bcf4bd3bc5297ca3c508193d7590bae6c1836.tar.gz
crawl-ref-504bcf4bd3bc5297ca3c508193d7590bae6c1836.zip
Combine player_knows_spell, player_has_spell into player::has_spell.
Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index df0e76626e..ef780a4f88 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -409,12 +409,12 @@ int spell_levels_required( spell_type which_spell )
int levels = spell_difficulty( which_spell );
if (which_spell == SPELL_DELAYED_FIREBALL
- && player_has_spell( SPELL_FIREBALL ))
+ && you.has_spell(SPELL_FIREBALL))
{
levels -= spell_difficulty( SPELL_FIREBALL );
}
else if (which_spell == SPELL_FIREBALL
- && player_has_spell( SPELL_DELAYED_FIREBALL ))
+ && you.has_spell(SPELL_DELAYED_FIREBALL))
{
levels = 0;
}