> This should also check for !IS_NPC(ch)
>
> Edwin

Doesn't do_cast already return if you are an NPC?

/********/

void do_cast (CHAR_DATA * ch, char *argument)
{
    char arg1[MAX_INPUT_LENGTH];
    char arg2[MAX_INPUT_LENGTH];
    CHAR_DATA *victim;
    OBJ_DATA *obj;
    void *vo;
    int mana;
    int sn;
    int target;

    /*
     * Switched NPC's can cast spells, but others can't.
     */
    if (IS_NPC (ch) && ch->desc == NULL)
 /* If they don't have the right to be here, they WON'T me */
        return;

    strcpy(ch->desc->magic, argument);


/*********/

Mark

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to