It is obvious which of the if's return false now. And we see we have a comparison between af->spell and 130. But af->spell is 201, which is way higher than 130, so the if returns false, and we never get to the message.
The reason for this is that until you made the changes earlier in this topic, only spells could have wear-off messages. Now, skills can too. So, instead of comparing to MAX_SPELLS, you need to compare to MAX_SKILLS:
Code:
- if ((af->spell > 0) && (af->spell <= MAX_SPELLS))
+ if ((af->spell > 0) && (af->spell <= MAX_SKILLS))
if (!af->next || (af->next->spell != af->spell) ||
(af->next->duration > 0))
if (spell_info[af->spell].wear_off_msg)
send_to_char(i, "%s\r\n", spell_info[af->spell].wear_off_msg);
affect_remove(i, af);