forked from Nekojimi/JackIt
14 lines
402 B
GDScript3
14 lines
402 B
GDScript3
|
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
|