--- deliantra/server/server/spell_attack.C 2012/01/03 11:25:37 1.108 +++ deliantra/server/server/spell_attack.C 2012/01/27 22:00:40 1.110 @@ -1111,9 +1111,7 @@ { object *effect, *target; object *god = find_god (determine_god (op)); - int range; - range = spell->range + SP_level_range_adjust (caster, spell); target = get_pointed_target (op, dir, 50, spell->stats.grace ? SPELL_GRACE : SPELL_MANA); /* Bunch of conditions for casting this spell. Note that only @@ -1463,7 +1461,7 @@ mapspace &ms = m->at (nx, ny); /* If there is nothing living on this space, no need to go further */ - if (!ms.flags () & P_IS_ALIVE) + if (!(ms.flags () & P_IS_ALIVE)) continue; // players can only affect spaces that they can actually see