From a418d15295dfc484bdeef463ef6678424981b224 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 31 Oct 2009 15:08:00 -0500 Subject: Merge mons_holiness() into monster::holiness(), and add an is_unholy() convenience function. --- crawl-ref/source/spl-cast.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spl-cast.cc') diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index d1a75373fb..fd6b110c00 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -1001,7 +1001,7 @@ static bool _vampire_cannot_cast(spell_type spell) static bool _spell_is_uncastable(spell_type spell) { - if (player_is_unholy() && spell_typematch(spell, SPTYP_HOLY)) + if (you.is_unholy() && spell_typematch(spell, SPTYP_HOLY)) { mpr("You can't use this type of magic!"); return (true); -- cgit v1.2.3-54-g00ecf