4
0
Fork 0
WolfBox/scripts/werewolf/night_actions/roleblock_night_action.gd

14 lines
402 B
GDScript

extends PickPlayerAction
class_name RoleblockNightAction
func execute_with_target(user: WolfPlayer, target: WolfPlayer) -> bool:
if !super.execute_with_target(user, target):
return false
target.leave_callbacks.append(_target_leaving)
return true
func _target_leaving(target: WolfPlayer, buh: String) -> WolfPlayer.CallbackFlags:
return WolfPlayer.CallbackFlags.STOP_PROCESS # no you aren't