version 1.110 | | version 1.111 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.110 2003/11/17 00:13:55 mwedel Exp $"; | | * "$Id: spell_effect.c,v 1.111 2003/11/29 02:17:27 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
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); |
| | if (op->type==PLAYER) |
esrv_send_item (op, tmp); | | esrv_send_item (op, tmp); |
} | | } |
if (QUERY_FLAG(spell, FLAG_KNOWN_CURSED) && !QUERY_FLAG(tmp, FLAG_KNOWN_CURSED) && | | if (QUERY_FLAG(spell, FLAG_KNOWN_CURSED) && !QUERY_FLAG(tmp, FLAG_KNOWN_CURSED) && |
(QUERY_FLAG(tmp, FLAG_CURSED) || QUERY_FLAG(tmp, FLAG_DAMNED))) { | | (QUERY_FLAG(tmp, FLAG_CURSED) || QUERY_FLAG(tmp, FLAG_DAMNED))) { |
SET_FLAG(tmp, FLAG_KNOWN_CURSED); | | SET_FLAG(tmp, FLAG_KNOWN_CURSED); |
| | if (op->type==PLAYER) |
esrv_send_item (op, tmp); | | esrv_send_item (op, tmp); |
} | | } |
} /* if item is not identified */ | | } /* if item is not identified */ |