void cast_fireball( byte level, struct char_data *ch, char *arg, int type, struct char_data *victim, struct obj_data *tar_obj ) { switch (type) { case SPELL_TYPE_SPELL: spell_fireball(level, ch, victim, 0); break; case SPELL_TYPE_SCROLL: if(victim) spell_fireball(level, ch, victim, 0); else if(!tar_obj) spell_fireball(level, ch, ch, 0); break; case SPELL_TYPE_WAND: if(victim) spell_fireball(level, ch, victim, 0); break; default : log("Serious screw-up in fireball!"); break; } }
void cast_fireball( byte level, struct char_data *ch, const char *arg, int type, struct char_data *victim, struct obj_data *tar_obj ) { switch (type) { case SPELL_TYPE_WAND: case SPELL_TYPE_SPELL: case SPELL_TYPE_SCROLL: case SPELL_TYPE_STAFF: spell_fireball(level, ch, 0, 0); break; default : mudlog( LOG_SYSERR, "Serious screw-up in fireball"); break; } }