version 1.141 | | version 1.142 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.141 2005/10/07 19:38:50 akirschbaum Exp $"; | | * "$Id: spell_effect.c,v 1.142 2005/10/16 08:48:30 ryo_saeba Exp $"; |
*/ | | */ |
| | |
| | |
| | |
if(op->type!=PLAYER) | | if(op->type!=PLAYER) |
return 0; | | return 0; |
| | |
| | if (find_obj_by_type_subtype(op,SPELL_EFFECT, SP_WORD_OF_RECALL)) |
| | { |
| | new_draw_info(NDI_UNIQUE, 0, op, "You feel a force starting to build up inside you." ); |
| | return 1; |
| | } |
| | |
dummy=get_archetype(FORCE_NAME); | | dummy=get_archetype(FORCE_NAME); |
if(dummy == NULL){ | | if(dummy == NULL){ |
new_draw_info(NDI_UNIQUE, 0,op,"Oops, program error!"); | | new_draw_info(NDI_UNIQUE, 0,op,"Oops, program error!"); |
| | |
"no pow" | | "no pow" |
}; | | }; |
| | |
int cast_change_ability(object *op,object *caster,object *spell_ob, int dir) { | | int cast_change_ability(object *op,object *caster,object *spell_ob, int dir, int silent) { |
object *tmp, *tmp2=NULL; | | object *tmp, *tmp2=NULL; |
object *force=NULL; | | object *force=NULL; |
int i; | | int i; |
| | |
break; | | break; |
} | | } |
else if (spell_ob->race && spell_ob->race == tmp2->name) { | | else if (spell_ob->race && spell_ob->race == tmp2->name) { |
| | if ( !silent ) |
new_draw_info_format(NDI_UNIQUE, 0, op, | | new_draw_info_format(NDI_UNIQUE, 0, op, |
"You can not cast %s while %s is in effect", | | "You can not cast %s while %s is in effect", |
spell_ob->name, tmp2->name_pl); | | spell_ob->name, tmp2->name_pl); |