From bf03515e22d610f81afa6d4153afc383f7331363 Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Mon, 9 Nov 2009 21:56:57 +1000 Subject: Fix "Gastronok drinks a potion. Gastronok speeds up!". Forgot to include Gastronok in the list of monsters who do not drink potions. --- crawl-ref/source/monster.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/monster.cc') 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); } -- cgit v1.2.3-54-g00ecf