… | |
… | |
1964 | |
1964 | |
1965 | tmp->stats.hp = op->stats.hp; |
1965 | tmp->stats.hp = op->stats.hp; |
1966 | |
1966 | |
1967 | if (friendly) |
1967 | if (friendly) |
1968 | { |
1968 | { |
1969 | SET_FLAG (tmp, FLAG_FRIENDLY); |
|
|
1970 | add_friendly_object (tmp); |
1969 | add_friendly_object (tmp); |
1971 | tmp->attack_movement = PETMOVE; |
1970 | tmp->attack_movement = PETMOVE; |
|
|
1971 | |
1972 | if (owner != NULL) |
1972 | if (owner) |
1973 | tmp->set_owner (owner); |
1973 | tmp->set_owner (owner); |
1974 | } |
1974 | } |
1975 | |
1975 | |
1976 | if (unaggressive) |
1976 | if (unaggressive) |
1977 | SET_FLAG (tmp, FLAG_UNAGGRESSIVE); |
1977 | SET_FLAG (tmp, FLAG_UNAGGRESSIVE); |