From: <gi...@cr...> - 2025-07-26 13:30:16
|
via f09bc6260025d166f580e7d730ce0f96896a6767 (commit) from ac1049ab153970bc300aa202dab48d3f764fddee (commit) ----------------------------------------------------------------------- commit f09bc6260025d166f580e7d730ce0f96896a6767 Author: DracoOmega <dra...@gm...> Date: Sat Jul 26 10:55:38 2025 -0230 Prevent casting Surprising Crocodile while a tree (Acrobat) ----------------------------------------------------------------------- Summary of changes: crawl-ref/source/spl-util.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc index 566e8e93c3..3beeb58a70 100644 --- a/crawl-ref/source/spl-util.cc +++ b/crawl-ref/source/spl-util.cc @@ -1527,7 +1527,9 @@ string spell_uselessness_reason(spell_type spell, bool temp, bool prevent, case SPELL_SURPRISING_CROCODILE: if (temp) { - if (!monster_habitable_grid(MONS_CROCODILE, you.pos())) + if (you.is_stationary()) + return "you cannot be moved right now."; + else if (!monster_habitable_grid(MONS_CROCODILE, you.pos())) return "a crocodile could not survive beneath you."; else if (count_summons(&you, SPELL_SURPRISING_CROCODILE)) return "your pet crocodile is still here."; -- Dungeon Crawl Stone Soup |