version 1.129 | | version 1.130 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.129 2005/07/19 20:59:34 ryo_saeba Exp $"; | | * "$Id: spell_effect.c,v 1.130 2005/07/26 00:23:00 akirschbaum Exp $"; |
*/ | | */ |
| | |
| | |
| | |
if (QUERY_FLAG(spell, FLAG_KNOWN_CURSED) || QUERY_FLAG(spell, FLAG_KNOWN_MAGICAL)) { | | if (QUERY_FLAG(spell, FLAG_KNOWN_CURSED) || QUERY_FLAG(spell, FLAG_KNOWN_MAGICAL)) { |
done_one = 0; | | done_one = 0; |
for (tmp = op->inv; tmp; tmp = tmp->below) { | | for (tmp = op->inv; tmp; tmp = tmp->below) { |
if (!QUERY_FLAG(tmp, FLAG_IDENTIFIED)) { | | if (!tmp->invisible && !QUERY_FLAG(tmp, FLAG_IDENTIFIED)) { |
if (QUERY_FLAG(spell, FLAG_KNOWN_MAGICAL) && | | if (QUERY_FLAG(spell, FLAG_KNOWN_MAGICAL) && |
is_magical(tmp) && !QUERY_FLAG(tmp,FLAG_KNOWN_MAGICAL)) { | | is_magical(tmp) && !QUERY_FLAG(tmp,FLAG_KNOWN_MAGICAL)) { |
SET_FLAG(tmp,FLAG_KNOWN_MAGICAL); | | SET_FLAG(tmp,FLAG_KNOWN_MAGICAL); |