Browse Source
Phasing could end up attempting to teleport to hunreds of random location and still fail to find a valid target and send the player in to a wall or outside the map. This is fixed by first finding all valid locations within range and then picking one of them at random. Valid targets is a 13x13 area around the player minus the inner 7x7 In total there can be no more then 120 valid tiles and on average there should be 75 avalible.pull/2727/head
2 changed files with 34 additions and 48 deletions
Loading…
Reference in new issue