Bug #120
openBug Report
0%
Description
NPCs can't seem to 'cast <spell> at <target>'. It appears as though can_cast_str_at_liv() returns 1 and all of its dependencies are succeeding and yet the result from can_cast_str(), which is a negative-based string result, is being utilized. While checking this out I found a big bug in CAST_D where the spell_type (CAST_AT, CAST_ON, etc) was being compared to spell_category (SC_COMBAT, SC_DEFENSE, etc). I fixed that bug....
0
Updated by Hilapdatus over 4 years ago
This might be a non-issue. It appears as though this issue is only true when NPCs are trying to cast spells on creators. NPCs casting spells on mortal player characters seems to be working. I need to run some more tests to verify that this is true and then figure out why it is true.
I have not yet found anything in LIB_CREATOR that would prevent NPCs from casting spells at creators. I still need to look into CAST_D, LIB_SPELL, the cast verb, and the individual spells.