eliminate find_spell warning for games where nobody is cursed, and you cannot summon igjarjuk

This commit is contained in:
Enno Rehling 2015-10-12 18:59:15 +02:00
parent 53fd192d63
commit f2b0ba1ec6
2 changed files with 2 additions and 2 deletions

View File

@ -1691,7 +1691,7 @@ void do_combatmagic(battle * b, combatmagic_t was)
if (was == DO_PRECOMBATSPELL) {
for (s = b->sides; s != b->sides + b->nsides; ++s) {
fighter *fig = 0;
if (fval(s->faction, FFL_CURSED) && s->bf->attacker) {
if (s->bf->attacker && fval(s->faction, FFL_CURSED)) {
spell *sp = find_spell("igjarjuk");
if (sp) {
int si;

View File

@ -113,7 +113,7 @@ spell *find_spell(const char *name)
cb_get_kv(match, &sp, sizeof(sp));
}
else {
log_warning("find_spell: could not find spell '%s'\n", name);
log_debug("find_spell: could not find spell '%s'\n", name);
}
return sp;
}