mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
Fixes mindflayers sometimes being spammed with messages when pacified (#30686)
* fixes the message popping up when using action buttons * Secret second bug that the first bug uncovered, fixes no messages at all
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
var/datum/spell/spell = target
|
||||
|
||||
if(owner)
|
||||
return spell.can_cast(owner, show_message)
|
||||
return spell.can_cast(owner, TRUE, show_message)
|
||||
return FALSE
|
||||
|
||||
/datum/action/spell_action/apply_unavailable_effect(atom/movable/screen/movable/action_button/button)
|
||||
|
||||
@@ -60,7 +60,8 @@
|
||||
return FALSE
|
||||
|
||||
if(checks_nullification && HAS_TRAIT(user, TRAIT_MINDFLAYER_NULLIFIED))
|
||||
flayer_datum.send_swarm_message("We do not have the energy to manifest that currently...")
|
||||
if(show_message)
|
||||
flayer_datum.send_swarm_message("We do not have the energy to manifest that currently...")
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user