> ASPELL(spell_improved_invisibility)
> {
> struct affected_type af;
>
> assert((ch && obj) || victim);
>
> if (obj) {
> if (IS_SET(obj->obj_flags.extra_flags, ITEM_NOINVIS)) {
> send_to_char("You failed.\n\r", ch);
> return;
> }
[code chunk nuked]
> af.location = APPLY_AC;
> af.bitvector = AFF_INVISIBLE;
> affect_to_char(victim, &af);
> }
> }
> }
You can save a lot of extraineous code by just putting a case statement in
mag_affects and mag_alterobjs, the way the original invis spell does it.
----------------------------------------------------------------------------
Systems Administrator of MudTech.com. Send an Email to M T
tourach@cyber1.servtech.com for info on how you can run U E
your mud or chat client on MudTech. D C
Visit Ebon Mists MUD at ebonmists.roc.servtech.com 8888 H
This archive was generated by hypermail 2b30 : 12/07/00 PST