OSDN Git Service

Fix a bug of piercing shot that an artifact arrow/bolt disappears with a monster...
authoriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 16 Mar 2013 08:23:29 +0000 (08:23 +0000)
committeriks <iks@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 16 Mar 2013 08:23:29 +0000 (08:23 +0000)
- Don't judge a arrow/bolt sticks to monsters or not in the case that the player class is Sniper and a concentrate amount is greater than 0

src/cmd2.c

index 7a6e352..b96fd6a 100644 (file)
@@ -3860,7 +3860,8 @@ void do_cmd_fire_aux(int item, object_type *j_ptr)
                                else
                                {
                                        /* STICK TO */
-                                       if (object_is_fixed_artifact(q_ptr))
+                                       if (object_is_fixed_artifact(q_ptr) &&
+                                               (p_ptr->pclass != CLASS_SNIPER || p_ptr->concent == 0))
                                        {
                                                char m_name[80];