Use ^ rather than & so the player can't be generated 'too boring' for any monster...
[rogue-pphs.git] / romance.c
index bff5588..1a73fbe 100644 (file)
--- a/romance.c
+++ b/romance.c
@@ -53,7 +53,7 @@ int ydelta, xdelta;
     else
     {
         register struct thing *tp = (struct thing *) ldata(mob);
-        int attr = count_bits_set(tp->t_stats.s_ont & player.t_stats.s_ont);
+        int attr = count_bits_set(tp->t_stats.s_ont ^ player.t_stats.s_ont);
         attr += tp->t_stats.s_int - 1;
         if (rnd(NUM_FEATURES) < attr)
         {