mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[no gbp] fixes being able to tell animals to commit atrocious acts (#88754)
## About The Pull Request closes #88743 . the issue is while they'd ignore ur command since its impossible, the emote would still appear, which i now realize was a mistake ## Why It's Good For The Game fixes being able to tell animals to commit atrocious acts ## Changelog 🆑 fix: radial pet commanding emotes will now not appear if the command is impossible to execute /🆑
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
/datum/pet_command/breed/gutlunch/set_command_target(mob/living/parent, atom/target)
|
||||
if(GLOB.gutlunch_count >= MAXIMUM_GUTLUNCH_POP)
|
||||
parent.balloon_alert_to_viewers("can't reproduce anymore!")
|
||||
return
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
#undef MAXIMUM_GUTLUNCH_POP
|
||||
|
||||
@@ -268,7 +268,7 @@
|
||||
|
||||
/datum/pet_command/use_ability/lob_charge/set_command_target(mob/living/parent, atom/target)
|
||||
if (!target)
|
||||
return
|
||||
return FALSE
|
||||
var/datum/targeting_strategy/targeter = GET_TARGETING_STRATEGY(parent.ai_controller.blackboard[targeting_strategy_key])
|
||||
if(!targeter?.can_attack(parent, target))
|
||||
parent.balloon_alert_to_viewers("shakes head!")
|
||||
|
||||
Reference in New Issue
Block a user