From c8619c93241cae274335d877f3bce7965639da2b Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 25 Sep 2006 20:48:57 +0000 Subject: Implemented 1565253, airstrike now deals more damage to flying enemies. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup@116 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/describe.cc | 3 ++- crawl-ref/source/spells3.cc | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc index 0bcafcf040..abf9a1407a 100644 --- a/crawl-ref/source/describe.cc +++ b/crawl-ref/source/describe.cc @@ -4161,7 +4161,8 @@ void describe_spell(int spelled) case SPELL_AIRSTRIKE: // jet planes in Crawl ??? {dlb} description += "causes the air around a creature to twist itself into " - "a whirling vortex of meteorological fury. "; + "a whirling vortex of meteorological fury. This spell " + "is especially effective against flying enemies."; break; case SPELL_SHADOW_CREATURES: diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index a38fa615e8..d222adb2cd 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -251,6 +251,10 @@ bool airstrike(int power) hurted = random2( random2(12) + (random2(power) / 6) + (random2(power) / 7) ); hurted -= random2(1 + monster->armour_class); + if ( mons_flies(monster) ) { + hurted *= 3; + hurted /= 2; + } if (hurted < 0) hurted = 0; -- cgit v1.2.3-54-g00ecf