mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
Fixes wizards being able to cast most spells while under incapacitation. (#11194)
This commit is contained in:
@@ -222,8 +222,8 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
return 0
|
||||
|
||||
if(!(spell_flags & GHOSTCAST) && holder == user)
|
||||
if(user.stat && !(spell_flags & STATALLOWED))
|
||||
to_chat(usr, "Not when you're incapacitated.")
|
||||
if(user.incapacitated(INCAPACITATION_KNOCKOUT) && !(spell_flags & STATALLOWED))
|
||||
to_chat(usr, SPAN_WARNING("Not when you're incapacitated."))
|
||||
return 0
|
||||
|
||||
if(ishuman(user) && !(invocation_type in list(SpI_EMOTE, SpI_NONE)))
|
||||
|
||||
Reference in New Issue
Block a user