Adds more multiz support (#69420)

* Adds more multiz support by making use of ``is_valid_z_level`` instead of simply checking if z is the same.
This commit is contained in:
ShizCalev
2022-09-01 00:07:14 -04:00
committed by GitHub
parent 39219afe34
commit 4cbdc3a2db
18 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -210,7 +210,7 @@
if(!resolved_master)
balloon_alert(src, "cannot locate master")
return FALSE
if(src.z != resolved_master.z)
if(!is_valid_z_level(get_turf(src), get_turf(resolved_master)))
balloon_alert(src, "master out of range")
return FALSE
host_scan.attack(resolved_master, src)