--- deliantra/server/server/spell_util.C 2006/12/26 20:04:09 1.29 +++ deliantra/server/server/spell_util.C 2006/12/31 19:02:24 1.30 @@ -162,9 +162,9 @@ * This function takes a caster and spell and presents the * effective level the caster needs to be to cast the spell. * basically, it just adjusts the spell->level with attuned/repelled - * spellpaths. Was called path_level_mod + * spellpaths. Was called path_level_mod. * - * caster is person casting hte spell. + * caster is person casting the spell. * spell is the spell object. * Returns modified level. */ @@ -177,12 +177,12 @@ return 1; new_level = spell->level - + ((caster->path_repelled & spell->path_attuned) ? +2 : 0) + ((caster->path_attuned & spell->path_attuned) ? -2 : 0); + + (caster->path_repelled & spell->path_attuned ? +2 : 0) + + (caster->path_attuned & spell->path_attuned ? -2 : 0); - return (new_level < 1) ? 1 : new_level; + return max (1, new_level); } - /* This function returns the effective level the spell * is being cast at. * Note that I changed the repelled/attuned bonus to 2 from 5. @@ -1150,6 +1150,7 @@ new_draw_info (NDI_UNIQUE, 0, op, "You don't have enough mana."); return 0; } + if (SP_level_spellpoint_cost (caster, spell_ob, SPELL_GRACE) && SP_level_spellpoint_cost (caster, spell_ob, SPELL_GRACE) > op->stats.grace) {