--- cf.schmorp.de/maps/perl/sockpuppet.ext 2006/08/30 06:05:57 1.2 +++ cf.schmorp.de/maps/perl/sockpuppet.ext 2006/08/30 06:41:20 1.3 @@ -4,13 +4,18 @@ on_skill_attack => sub { my ($self, $victim) = @_; - my $stats = $victim->stats; + if ($victim->type == cf::PLAYER) { + my $stats = $victim->stats; - $stats->exp ($stats->exp * 0.99999 - 1) - if $stats->exp > 2; + $stats->exp ($stats->exp * 0.99999 - 1) + if $stats->exp > 2; - $self->remove; - $self->free; + $self->remove; + $self->free; + } else { + $victim->hp (-1); + $victim->kill_object; + } cf::override; },