… | |
… | |
592 | { |
592 | { |
593 | /* for golems with race fields, we don't attack |
593 | /* for golems with race fields, we don't attack |
594 | * aligned races |
594 | * aligned races |
595 | */ |
595 | */ |
596 | |
596 | |
597 | if (victim->race && op->race && strstr (op->race, victim->race)) |
597 | if (victim->race && op->race && op->race.contains (victim->race)) |
598 | { |
598 | { |
599 | if (op->owner) |
599 | if (op->owner) |
600 | new_draw_info_format (NDI_UNIQUE, 0, op->owner, "%s avoids damaging %s.", &op->name, &victim->name); |
600 | new_draw_info_format (NDI_UNIQUE, 0, op->owner, "%s avoids damaging %s.", &op->name, &victim->name); |
601 | } |
601 | } |
602 | else if (victim == op->owner) |
602 | else if (victim == op->owner) |