X-Git-Url: https://git.yukkurigames.com/?p=rogue-pphs.git;a=blobdiff_plain;f=romance.c;fp=romance.c;h=1a73fbe5e478efe3154d6337b5f3a1b973b00913;hp=bff5588b35342186141c7842794ea77b598b36a8;hb=e915733375580be35ab04e70dd080fea59586dd8;hpb=efb1335002efedd46b532a3e1daf6f390a20cce7 diff --git a/romance.c b/romance.c index bff5588..1a73fbe 100644 --- 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) {