version 1.113 | | version 1.114 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.113 2004/02/09 05:52:20 mwedel Exp $"; | | * "$Id: spell_effect.c,v 1.114 2004/02/27 23:00:28 ryo_saeba Exp $"; |
*/ | | */ |
| | |
| | |
| | |
if (tmp->type == PLAYER) { | | if (tmp->type == PLAYER) { |
/* Stat adjustment spells */ | | /* Stat adjustment spells */ |
for (i=0; i < NUM_STATS; i++) { | | for (i=0; i < NUM_STATS; i++) { |
int stat = get_attr_value(&spell_ob->stats, i), k, sm; | | sint8 stat = get_attr_value(&spell_ob->stats, i), k, sm; |
if (stat) { | | if (stat) { |
sm=0; | | sm=0; |
for (k=0; k<stat; k++) | | for (k=0; k<stat; k++) |
| | |
insert_ob_in_map(aura,env->map,aura,0); | | insert_ob_in_map(aura,env->map,aura,0); |
| | |
for(i=1;i<9;i++) { | | for(i=1;i<9;i++) { |
int nx, ny; | | sint16 nx, ny; |
nx = aura->x + freearr_x[i]; | | nx = aura->x + freearr_x[i]; |
ny = aura->y + freearr_y[i]; | | ny = aura->y + freearr_y[i]; |
mflags = get_map_flags(env->map, NULL, nx, ny, NULL, NULL); | | mflags = get_map_flags(env->map, NULL, nx, ny, NULL, NULL); |