… | |
… | |
1766 | * instead of having their spell stored in stats.sp. These are |
1766 | * instead of having their spell stored in stats.sp. These are |
1767 | * legacy spellbooks |
1767 | * legacy spellbooks |
1768 | */ |
1768 | */ |
1769 | if (tmp->slaying) |
1769 | if (tmp->slaying) |
1770 | { |
1770 | { |
1771 | spell = arch_to_object (find_archetype_by_object_name (tmp->slaying)); |
1771 | spell = find_archetype_by_object_name (tmp->slaying)->instance (); |
|
|
1772 | |
1772 | if (!spell) |
1773 | if (!spell) |
1773 | { |
1774 | { |
1774 | op->failmsg (format ("The book's formula for %s is incomplete.", &tmp->slaying)); |
1775 | op->failmsg (format ("The book's formula for %s is incomplete.", &tmp->slaying)); |
1775 | return; |
1776 | return; |
1776 | } |
1777 | } |