Re: Spell affects

From: ks white (
Date: 06/27/96

On Thu, 27 Jun 1996 wrote:
> I noticed that spell affects accumilate, such as strength, I had several 
> strength's spells cast on a guy and his stat read +15 to str.
> How can I make it so that spell affects (potions/scrolls/etc included) do 
> not accumilate?

Well, I simply have some AFF_ setting spells check to see if the vict
already has the AFF set.

(in magic.c)

    if (IS_AFFECTED(victim, AFF_BLIND)) {
      act("$E is already blind.", TRUE, ch, 0, victim, TO_CHAR);

However spells such as strength don't set an AFF at all, but only the APPLY.
This may work:

    if (affected_by_spell(victim, SPELL_STRENGTH)) {
      act("$S strength is already enhanced.", TRUE, ch, 0, victim, TO_CHAR);


This archive was generated by hypermail 2b30 : 12/18/00 PST