Zapping at an object with teleportation resulted in scrambled zap targetting as soon as any object was hit. flooreffects() got changed to set bhitpos for handling erosion damage, but bhitpos is used by wand/spell zap handling to pick the next target spot. So a zap that teleported an object resumed one step beyond the object's destination rather than one step beyond where it was hit. The rest of the zap could hit things (monsters as well as other objects) which weren't in line with the original zap. Reported case was one of the Riders on Astral, coming from beyond multiple walls to arrive adjacent to hero (usual position when a Rider gets teleported). Fixes #549 Fixes #423
76 KiB
76 KiB