Skip to content

Commit

Permalink
no balling through azone walls
Browse files Browse the repository at this point in the history
  • Loading branch information
TobleroneSwordfish committed Jan 18, 2025
1 parent bdb9bd0 commit 82d2c0c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/procs/basketball.dm
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@
cooldown = 4 SECONDS
icon_state = "blink"

/datum/targetable/bball/blitz_slam/tryCast(atom/target, params)
if (isrestrictedz(get_z(holder.owner)))
boutput(holder.owner, SPAN_ALERT("You cannot cast that here"))
return CAST_ATTEMPT_FAIL_NO_COOLDOWN
. = ..()

/datum/targetable/bball/blitz_slam/cast(atom/target)
. = ..()
var/mob/M = holder.owner
Expand Down

0 comments on commit 82d2c0c

Please sign in to comment.