From 9876ce66bfd29003796a8182b20696e57fe7add5 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 30 Jun 2008 14:24:50 +0000 Subject: Simplify. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6243 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 11102b8cd7..52be3c7d62 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -1444,13 +1444,8 @@ int melee_attack::player_apply_weapon_bonuses(int damage) } // Demonspawn get a damage bonus for demonic weapons. - if (you.species == SP_DEMONSPAWN - && (weapon->sub_type == WPN_DEMON_BLADE - || weapon->sub_type == WPN_DEMON_WHIP - || weapon->sub_type == WPN_DEMON_TRIDENT)) - { + if (you.species == SP_DEMONSPAWN && is_demonic(*weapon)) damage += random2(3); - } } return (damage); -- cgit v1.2.3-54-g00ecf