forked from github/server
eliminate find_spell warning for games where nobody is cursed, and you cannot summon igjarjuk
This commit is contained in:
parent
a3c843f90d
commit
62fbee2eb3
2 changed files with 3 additions and 3 deletions
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue