ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/spell_util.C
(Generate patch)

Comparing deliantra/server/server/spell_util.C (file contents):
Revision 1.67 by root, Sun Apr 20 00:44:13 2008 UTC vs.
Revision 1.68 by root, Sun May 4 10:32:28 2008 UTC

1004 { 1004 {
1005 skill = find_skill_by_name (op, spell_ob->skill); 1005 skill = find_skill_by_name (op, spell_ob->skill);
1006 1006
1007 if (!skill) 1007 if (!skill)
1008 { 1008 {
1009 op->failmsg (format ("You need the skill %s to cast %s!", &spell_ob->skill, &spell_ob->name)); 1009 op->failmsg (format ("You need the skill %s to cast %s! "
1010 "H<You either need to learn the skill via a skill scroll "
1011 "or you need to wear a talisman or holy symbol.>",
1012 &spell_ob->skill, &spell_ob->name));
1010 return 0; 1013 return 0;
1011 } 1014 }
1012 1015
1016 int casting_level = min_casting_level (op, spell_ob);
1017
1013 if (min_casting_level (op, spell_ob) > cast_level && !QUERY_FLAG (op, FLAG_WIZ)) 1018 if (casting_level > cast_level && !QUERY_FLAG (op, FLAG_WIZ))
1014 { 1019 {
1015 op->failmsg ("You lack enough skill to cast that spell!"); 1020 op->failmsg (format ("You lack enough skill to cast that spell! "
1021 "H<Your cast level is %d, but level %d is required. Maybe you are repelled?>",
1022 cast_level, casting_level));
1016 return 0; 1023 return 0;
1017 } 1024 }
1018 } 1025 }
1019 1026
1020 /* If the caster is the wiz, they don't ever fail, and don't have 1027 /* If the caster is the wiz, they don't ever fail, and don't have

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines