From 8674d7ae28e958983128c045fb8504b037785da7 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sat, 24 Feb 2007 11:13:12 +0000 Subject: Monster attack refactoring. Likely to be buggy. Fixed tracer explosion beams generating clouds. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@959 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells3.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/spells3.cc') diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 82905972ff..5adb01c171 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -263,11 +263,13 @@ int 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; - } + hurted -= random2(1 + monster->ac); + + if ( mons_flies(monster) ) + { + hurted *= 3; + hurted /= 2; + } if (hurted < 0) hurted = 0; -- cgit v1.2.3-54-g00ecf