Fixes some incorrect before_casts (personality commune, revenant) (#70339)

before_cast returns a bitflag, shouldn't return a bool. Bools will break it, TRUE especially cause it's the same as CANCEL_CAST. See

    Fixes tesla blast #69394

Fixes #70302

I'll see if this can be unit tested as well
This commit is contained in:
MrMelbert
2022-10-13 20:32:03 -07:00
committed by GitHub
parent 4d26455eb1
commit 0fe87e66d6
2 changed files with 1 additions and 3 deletions
@@ -195,7 +195,7 @@
/datum/action/cooldown/spell/aoe/revenant/before_cast(mob/living/simple_animal/revenant/cast_on)
. = ..()
if(. & SPELL_CANCEL_CAST)
return FALSE
return
if(locked)
if(!cast_on.unlock(unlock_amount))
@@ -36,8 +36,6 @@
reset_cooldown()
return . | SPELL_CANCEL_CAST
return TRUE
// Pillaged and adapted from telepathy code
/datum/action/cooldown/spell/personality_commune/cast(mob/living/cast_on)
. = ..()