diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-09 21:56:57 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-11-09 21:56:57 +1000 |
commit | bf03515e22d610f81afa6d4153afc383f7331363 (patch) | |
tree | ee05610376386c191291acf98b5bd6744135a901 /crawl-ref/source/monster.cc | |
parent | c4dbdd7b4da807096df9475555fa28da7dbff1ee (diff) | |
download | crawl-ref-bf03515e22d610f81afa6d4153afc383f7331363.tar.gz crawl-ref-bf03515e22d610f81afa6d4153afc383f7331363.zip |
Fix "Gastronok drinks a potion. Gastronok speeds up!".
Forgot to include Gastronok in the list of monsters who do not drink
potions.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r-- | crawl-ref/source/monster.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 3a54692345..ee0e81d37d 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -5580,7 +5580,7 @@ void monsters::lose_energy(energy_use_type et, int div, int mult) bool monsters::can_drink_potion(potion_type ptype) const { - if (mons_class_is_stationary(this->type)) + if (mons_class_is_stationary(type)) return (false); if (mons_itemuse(this) < MONUSE_STARTING_EQUIPMENT) @@ -5588,7 +5588,8 @@ bool monsters::can_drink_potion(potion_type ptype) const // These monsters cannot drink. if (mons_is_skeletal(type) || mons_is_insubstantial(type) - || mons_species() == MONS_LICH || mons_genus(type) == MONS_MUMMY) + || mons_species() == MONS_LICH || mons_genus(type) == MONS_MUMMY + || type == MONS_GASTRONOK) { return (false); } |