diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2014-01-21 20:43:34 -0700 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-01-21 22:11:39 -0700 |
commit | ce86bbf1374fe8894466314c116b39bd0b2fbf3b (patch) | |
tree | 9a991b8acf991c15e4307539ff5ad7b6b0ecde10 /crawl-ref/source/mon-ench.cc | |
parent | 889f32d1afad941cdf3a3fa9d877aee8947f1f02 (diff) | |
download | crawl-ref-ce86bbf1374fe8894466314c116b39bd0b2fbf3b.tar.gz crawl-ref-ce86bbf1374fe8894466314c116b39bd0b2fbf3b.zip |
Demonspawn warmongers: Grand Avatar.
Listed in the proposal as Icon of Greatness.
A grand avatar behaves similarly to both a spectral weapon and a
battlesphere in that it attacks targets the caster and its nearby allies
either attack in melee or by battlesphere-triggered conjurations; it
is only guaranteed to attack if the triggerer does at least 15 damage,
though it may trigger randomly below that threshold.
Diffstat (limited to 'crawl-ref/source/mon-ench.cc')
-rw-r--r-- | crawl-ref/source/mon-ench.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-ench.cc b/crawl-ref/source/mon-ench.cc index 087a118307..a4d3478be9 100644 --- a/crawl-ref/source/mon-ench.cc +++ b/crawl-ref/source/mon-ench.cc @@ -1944,6 +1944,11 @@ void monster::apply_enchantment(const mon_enchant &me) } break; + case ENCH_GRAND_AVATAR: + if (!me.agent() || !me.agent()->alive()) + del_ench(ENCH_GRAND_AVATAR, true, false); + break; + default: break; } @@ -2091,7 +2096,7 @@ static const char *enchant_names[] = "awaken vines", "control_winds", "wind_aided", "summon_capped", "toxic_radiance", "grasping_roots_source", "grasping_roots", "iood_charged", "fire_vuln", "tornado_cooldown", "icemail", "agile", - "frozen", "ephemeral_infusion", "black_mark", "buggy", + "frozen", "ephemeral_infusion", "black_mark", "grand_avatar", "buggy", }; static const char *_mons_enchantment_name(enchant_type ench) |