und noch einer

This commit is contained in:
Katja Zedel 2002-04-07 08:39:20 +00:00
parent 6daedf88cd
commit 9ee511bd9f
1 changed files with 2 additions and 0 deletions

View File

@ -1068,6 +1068,7 @@ randomevents(void)
for (u = r->units; u; u = u->next) { for (u = r->units; u; u = u->next) {
if (is_cursed(u->attribs, C_ORC, 0) if (is_cursed(u->attribs, C_ORC, 0)
&& !has_skill(u, SK_MAGIC) && !has_skill(u, SK_ALCHEMY)) { && !has_skill(u, SK_MAGIC) && !has_skill(u, SK_ALCHEMY)) {
int n;
int increase = 0; int increase = 0;
int num = min(get_cursedmen(u->attribs, C_ORC, 0), u->number); int num = min(get_cursedmen(u->attribs, C_ORC, 0), u->number);
int prob = get_curseeffect(u->attribs, C_ORC, 0); int prob = get_curseeffect(u->attribs, C_ORC, 0);
@ -1099,6 +1100,7 @@ randomevents(void)
for (u = r->units; u; u = u->next) { for (u = r->units; u; u = u->next) {
if ( (u->race == new_race[RC_ORC]) if ( (u->race == new_race[RC_ORC])
&& !has_skill(u, SK_MAGIC) && !has_skill(u, SK_ALCHEMY)) { && !has_skill(u, SK_MAGIC) && !has_skill(u, SK_ALCHEMY)) {
int n;
int increase = 0; int increase = 0;
int num = u->number; int num = u->number;
int prob = 5; int prob = 5;