On Thu, 27 Jun 1996 linebacker@microlink.net 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)
case SPELL_BLINDNESS:
if (IS_AFFECTED(victim, AFF_BLIND)) {
act("$E is already blind.", TRUE, ch, 0, victim, TO_CHAR);
return;
}
However spells such as strength don't set an AFF at all, but only the APPLY.
This may work:
case SPELL_STRENGTH:
if (affected_by_spell(victim, SPELL_STRENGTH)) {
act("$S strength is already enhanced.", TRUE, ch, 0, victim, TO_CHAR);
return;
}
-K.
This archive was generated by hypermail 2b30 : 12/18/00 PST