diff options
author | Chris Campbell <chriscampbell89@gmail.com> | 2014-01-05 12:13:49 +0000 |
---|---|---|
committer | Chris Campbell <chriscampbell89@gmail.com> | 2014-01-05 12:13:49 +0000 |
commit | 7a97ba40ffd05e4d3afd6a81430e206bc3e86016 (patch) | |
tree | c076e48370dcb16d3064df295e9f1146193071f4 /crawl-ref/source/potion.cc | |
parent | 49ce88036c26f9d3ca225fb1c686280dd70af9cd (diff) | |
download | crawl-ref-7a97ba40ffd05e4d3afd6a81430e206bc3e86016.tar.gz crawl-ref-7a97ba40ffd05e4d3afd6a81430e206bc3e86016.zip |
Redraw AC/EV/SH when being drained or recovering from draining (#7957)
Diffstat (limited to 'crawl-ref/source/potion.cc')
-rw-r--r-- | crawl-ref/source/potion.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/potion.cc b/crawl-ref/source/potion.cc index f63a6eb7bd..10d13355b2 100644 --- a/crawl-ref/source/potion.cc +++ b/crawl-ref/source/potion.cc @@ -421,6 +421,9 @@ bool potion_effect(potion_type pot_eff, int pow, item_def *potion, bool was_know if (you.attribute[ATTR_XP_DRAIN]) { you.attribute[ATTR_XP_DRAIN] = max(0, you.attribute[ATTR_XP_DRAIN] / 2 - 25); + // Regaining skills may affect AC/EV. + you.redraw_armour_class = true; + you.redraw_evasion = true; if (!you.attribute[ATTR_XP_DRAIN]) mprf(MSGCH_RECOVERY, "Your life force feels restored."); else |