… | |
… | |
2351 | /* create the golem object */ |
2351 | /* create the golem object */ |
2352 | tmp = arch_to_object (spell->other_arch); |
2352 | tmp = arch_to_object (spell->other_arch); |
2353 | |
2353 | |
2354 | /* if animated by a player, give the player control of the golem */ |
2354 | /* if animated by a player, give the player control of the golem */ |
2355 | CLEAR_FLAG (tmp, FLAG_MONSTER); |
2355 | CLEAR_FLAG (tmp, FLAG_MONSTER); |
2356 | SET_FLAG (tmp, FLAG_FRIENDLY); |
|
|
2357 | tmp->stats.exp = 0; |
2356 | tmp->stats.exp = 0; |
2358 | add_friendly_object (tmp); |
2357 | add_friendly_object (tmp); |
2359 | tmp->type = GOLEM; |
2358 | tmp->type = GOLEM; |
2360 | tmp->set_owner (op); |
2359 | tmp->set_owner (op); |
2361 | set_spell_skill (op, caster, spell, tmp); |
2360 | set_spell_skill (op, caster, spell, tmp); |