Changeset 1450 for trunk

Show
Ignore:
Timestamp:
06/22/09 20:18:47 (9 months ago)
Author:
ajps
Message:

Only ask for an aim when casting spells that require it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/cmd-obj.c

    r1449 r1450  
    401401static void obj_cast(object_type *o_ptr, int item) 
    402402{ 
    403         int spell, dir; 
     403        int spell, dir = DIR_UNKNOWN; 
    404404 
    405405        cptr verb = ((cp_ptr->spell_book == TV_MAGIC_BOOK) ? "cast" : "recite"); 
     
    418418        } 
    419419 
    420         if (!get_aim_dir(&dir)) 
     420        if (spell_needs_aim(cp_ptr->spell_book, spell) && !get_aim_dir(&dir)) 
    421421                return; 
    422422