From b884e880ac8d5a06b6c086ed09fe6595df543cac Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 11 Mar 2007 18:37:09 +0000 Subject: Fixed bogus auto-id of magical staves in combat (Erik). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1021 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index dadb00a351..7d92cc8417 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -996,6 +996,7 @@ int melee_attack::player_apply_weapon_bonuses(int damage) void melee_attack::player_weapon_auto_id() { if (weapon + && weapon->base_type == OBJ_WEAPONS && !is_range_weapon( *weapon ) && !item_ident( *weapon, ISFLAG_KNOW_PLUSES ) && random2(100) < you.skills[ wpn_skill ]) -- cgit v1.2.3-54-g00ecf