From cc857c940cfe1bfe8d78674dbce53e5b71acaf41 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 17 Sep 2016 09:58:14 +0200 Subject: Move ability_type::acquired to p_ptr struct This is justified by the fact that the 'acquired' flag is actually a player-centered bit of information and must be loaded/saved. Everything else in ability_type is defined by the *.txt files. --- src/spells1.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/spells1.cc') diff --git a/src/spells1.cc b/src/spells1.cc index 1fe14c5a..0054a1d6 100644 --- a/src/spells1.cc +++ b/src/spells1.cc @@ -1322,7 +1322,7 @@ void take_hit(int damage, cptr hit_from) if (p_ptr->chp < 0) { /* Necromancers get a special treatment */ - if (((!has_ability(AB_UNDEAD_FORM)) || ((p_ptr->necro_extra & CLASS_UNDEAD)))) + if (((!p_ptr->has_ability(AB_UNDEAD_FORM)) || ((p_ptr->necro_extra & CLASS_UNDEAD)))) { /* Hack -- Note death */ if (!options->last_words) -- cgit v1.2.3