version 1.95 | | version 1.96 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_util_c = | | * static char *rcsid_spell_util_c = |
* "$Id: spell_util.c,v 1.95 2005/09/09 21:09:41 akirschbaum Exp $"; | | * "$Id: spell_util.c,v 1.96 2005/09/24 09:49:49 ryo_saeba Exp $"; |
*/ | | */ |
| | |
| | |
| | |
/* Always cast spell on caster */ | | /* Always cast spell on caster */ |
success = cast_spell( op, caster, dir, spell, stringarg ); | | success = cast_spell( op, caster, dir, spell, stringarg ); |
| | |
if ( caster->contr->party_number == -1 ) | | if ( caster->contr->party == NULL ) |
{ | | { |
remove_ob( spell ); | | remove_ob( spell ); |
return success; | | return success; |
} | | } |
for( pl=first_player; pl!=NULL; pl=pl->next ) | | for( pl=first_player; pl!=NULL; pl=pl->next ) |
if( ( pl->ob->contr->party_number == caster->contr->party_number ) && ( on_same_map( pl->ob, caster ) ) ) | | if( ( pl->ob->contr->party == caster->contr->party ) && ( on_same_map( pl->ob, caster ) ) ) |
{ | | { |
cast_spell( pl->ob, caster, pl->ob->facing, spell, stringarg ); | | cast_spell( pl->ob, caster, pl->ob->facing, spell, stringarg ); |
} | | } |