--- deliantra/server/ext/magic_mapping.ext 2009/11/04 18:17:57 1.2 +++ deliantra/server/ext/magic_mapping.ext 2009/11/09 00:14:48 1.3 @@ -9,7 +9,7 @@ on_cast_spell => sub { my ($spell, $who, $caster, $dir, $arg) = @_; - my ($map, $x, $y) = ($caster->map, $caster->x, $caster->y); + my ($map, $x, $y) = ($who->map, $who->x, $who->y); # dirty check, should maybe allow tiled outdoor maps? $map->path =~ m%/world/world_% @@ -20,7 +20,7 @@ my $dist = 0; $caster->speed_left (-1); $pl->fire_on (0); $pl->run_on (0); - my $duration = $who->casting_level ($spell) * 150 / 100; + my $duration = $caster->casting_level ($spell) * 150 / 100; $pl->ns->async (sub { while (++$dist < $duration && $bird->valid) {