Fixed bug in magic.c regarding aff values
This commit is contained in:
@@ -516,7 +516,7 @@ void mag_affects(int level, struct char_data *ch, struct char_data *victim,
|
|||||||
* and waiting for it to fade, for example. */
|
* and waiting for it to fade, for example. */
|
||||||
if (IS_NPC(victim) && !affected_by_spell(victim, spellnum))
|
if (IS_NPC(victim) && !affected_by_spell(victim, spellnum))
|
||||||
for (i = 0; i < MAX_SPELL_AFFECTS; i++)
|
for (i = 0; i < MAX_SPELL_AFFECTS; i++)
|
||||||
if (AFF_FLAGGED(victim, af[i].bitvector)) {
|
if (AFF_FLAGGED(victim, af[i].bitvector) && (af[i].bitvector > 0)) {
|
||||||
send_to_char(ch, "%s", CONFIG_NOEFFECT);
|
send_to_char(ch, "%s", CONFIG_NOEFFECT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user