]> granicus.if.org Git - nethack/commitdiff
B14018 healing mimics
authorcohrs <cohrs>
Sun, 8 Dec 2002 21:02:27 +0000 (21:02 +0000)
committercohrs <cohrs>
Sun, 8 Dec 2002 21:02:27 +0000 (21:02 +0000)
Add missing newsym
Also fixed up some inconsistent indentation

src/zap.c

index 465834cdfe00115ca880353658634ebde1b62cbe..5f7dfc665869aeb82b1d92cb3c3e6a68c61e0616 100644 (file)
--- a/src/zap.c
+++ b/src/zap.c
@@ -269,13 +269,14 @@ struct obj *otmp;
                if (canseemon(mtmp)) {
                    if (disguised_mimic) {
                        if (mtmp->m_ap_type == M_AP_OBJECT &&
-                               mtmp->mappearance == STRANGE_OBJECT)
-                               /* it can do better now */
-                               set_mimic_sym(mtmp);
-                       else
-                               mimic_hit_msg(mtmp, otyp);
+                           mtmp->mappearance == STRANGE_OBJECT) {
+                           /* it can do better now */
+                           set_mimic_sym(mtmp);
+                           newsym(mtmp->mx, mtmp->my);
+                       } else
+                           mimic_hit_msg(mtmp, otyp);
                    } else pline("%s looks%s better.", Monnam(mtmp),
-                                       otyp == SPE_EXTRA_HEALING ? " much" : "" );
+                                otyp == SPE_EXTRA_HEALING ? " much" : "" );
                }
                if (mtmp->mtame || mtmp->mpeaceful) {
                    adjalign(Role_if(PM_HEALER) ? 1 : sgn(u.ualign.type));