… | |
… | |
745 | { |
745 | { |
746 | SET_ANIMATION (op, ATTACKS[i].face); |
746 | SET_ANIMATION (op, ATTACKS[i].face); |
747 | } |
747 | } |
748 | } |
748 | } |
749 | |
749 | |
750 | |
|
|
751 | /* prayer_failure: This is called when a player fails |
750 | /* prayer_failure: This is called when a player fails |
752 | * at casting a prayer. |
751 | * at casting a prayer. |
753 | * op is the player. |
752 | * op is the player. |
754 | * failure is basically how much grace they had. |
753 | * failure is basically how much grace they had. |
755 | * power is how much grace the spell would normally take to cast. |
754 | * power is how much grace the spell would normally take to cast. |
756 | */ |
755 | */ |
757 | |
|
|
758 | void |
756 | void |
759 | prayer_failure (object *op, int failure, int power) |
757 | prayer_failure (object *op, int failure, int power) |
760 | { |
758 | { |
761 | const char *godname; |
759 | const char *godname; |
762 | object *tmp; |
760 | object *tmp; |
… | |
… | |
999 | } |
997 | } |
1000 | |
998 | |
1001 | /* If the caster is the wiz, they don't ever fail, and don't have |
999 | /* If the caster is the wiz, they don't ever fail, and don't have |
1002 | * to have sufficient grace/mana. |
1000 | * to have sufficient grace/mana. |
1003 | */ |
1001 | */ |
1004 | if (!QUERY_FLAG (op, FLAG_WIZ)) |
1002 | if (!QUERY_FLAG (op, FLAG_WIZCAST)) |
1005 | { |
1003 | { |
1006 | if (SP_level_spellpoint_cost (caster, spell_ob, SPELL_MANA) && |
1004 | if (SP_level_spellpoint_cost (caster, spell_ob, SPELL_MANA) && |
1007 | SP_level_spellpoint_cost (caster, spell_ob, SPELL_MANA) > op->stats.sp) |
1005 | SP_level_spellpoint_cost (caster, spell_ob, SPELL_MANA) > op->stats.sp) |
1008 | { |
1006 | { |
1009 | op->failmsg ("You don't have enough mana!"); |
1007 | op->failmsg ("You don't have enough mana!"); |