diff --git a/Moose Development/Moose/Core/Message.lua b/Moose Development/Moose/Core/Message.lua index 4165bdc57..ff74527f2 100644 --- a/Moose Development/Moose/Core/Message.lua +++ b/Moose Development/Moose/Core/Message.lua @@ -206,7 +206,7 @@ end function MESSAGE:ToGroup( Group, Settings ) self:F( Group.GroupName ) - if Group then + if Group and Group:IsAlive() then if self.MessageType then local Settings = Settings or (Group and _DATABASE:GetPlayerSettings( Group:GetPlayerName() )) or _SETTINGS -- Core.Settings#SETTINGS @@ -231,7 +231,7 @@ end function MESSAGE:ToUnit( Unit, Settings ) self:F( Unit.IdentifiableName ) - if Unit then + if Unit and Unit:IsAlive() then if self.MessageType then local Settings = Settings or ( Unit and _DATABASE:GetPlayerSettings( Unit:GetPlayerName() ) ) or _SETTINGS -- Core.Settings#SETTINGS