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 a3c843f90d
commit 62fbee2eb3
2 changed files with 3 additions and 3 deletions

View File

@ -1699,9 +1699,9 @@ 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 (s->bf->attacker) {
if (s->bf->attacker && fval(s->faction, FFL_CURSED)) {
spell *sp = find_spell("igjarjuk");
if (sp && fval(s->faction, FFL_CURSED)) {
if (sp) {
int si;
for (si = 0; s->enemies[si]; ++si) {
side *se = s->enemies[si];

View File

@ -103,7 +103,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;
}