summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 23:26:08 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-22 23:26:08 +0000
commit8ca9c3ccaae393d32e2c08dc5585daf64c839ed8 (patch)
tree074996a5b164c1c97a08869e05f9d774eebf5676
parent7c42a1b8710bff079e3f93704f999c7670ed12f6 (diff)
downloadcrawl-ref-8ca9c3ccaae393d32e2c08dc5585daf64c839ed8.tar.gz
crawl-ref-8ca9c3ccaae393d32e2c08dc5585daf64c839ed8.zip
Fixed bug with jellies not copying enchantments.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@86 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 826a8f3505..46653fda99 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -858,7 +858,9 @@ static bool jelly_divide(struct monsters * parent)
child->behaviour = parent->behaviour; /* Look at this! */
child->foe = parent->foe;
child->attitude = parent->attitude;
- /* FIXME - hp: copy enchantments? */
+ // duplicate enchantments
+ for ( int i = 0; i < NUM_MON_ENCHANTS; ++i )
+ child->enchantment[i] = parent->enchantment[i];
child->x = parent->x + jex;
child->y = parent->y + jey;