Hello. I have two questions. (rom 2.4)
I wrote a few spells, that add resists/vulns/immunes.
So far that works. But i get a strange display through mstat..
Immune: cold
Resist: poison disease
Vulnerable: lightning drowning
Affected by infrared
Spell: 'greater ice shield' modifies armor class by 60 for 21 hours with
bits none, level 56. (this part adds -ac)
Spell: 'greater ice shield' modifies none by 0 for 21 hours with bits
infrared, level 57. ( this part adds the Immune)
Spell: 'greater ice shield' modifies none by 0 for 21 hours with bits
faerie_fire, level 58. (this one adds the vuln)
its the with bits ***, part thats confusing me. They don't affect the charater.
What causes this? How can I fix it? =) the spell af. is..
AFFECT_DATA af3;
af3.where = TO_VULN;
af3.bitvector = VULN_LIGHTNING;
af3.type = sn;
af3.duration = level / 2;
af3.level = ch->level;
af3.location = 0;
af3.modifier = 0;
affect_to_char(ch, &af3);
am i missing something? (Was trying to find a snip that does the same
thing, but the only one i found
is protection_from_negitive, which adds bits poison.)
Im assuming, its some sort of display error. (Hoping more like it) But I
belive it to be caused by a deeper problem in the code.
Any help is appreciated.
-Cyhawk