Hello,
I recently came across spells such as poison, armor, bless being able to be cast repeatedly on a ch and the duration would keep incrementing. I took a look at stock circle and it behaved the same. Is this a design by default? I was thinking if you cast armor on a ch, then tried to cast it again if the ch already was affected by armor it would do a msg stating they are already affected by your spell, or the very least reset the timer to default and not incrementing it again.
I could add a check in magic.c
Code:
if (AFF_FLAGGED(victim, AFF_POISON)) {
send_to_char(ch, "They are already poisoned..."):
return;
}
Is there a more efficient way of handling this or am I off track here?
Thanks!