prevent magnet deconstruction when active (#19849)

* raise ToolUseAttemptEvent on target as well as tool

* prevent using tools on magnet when active

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-09-05 17:20:54 +01:00
committed by GitHub
parent ce54689e0c
commit a096e5be7e
3 changed files with 27 additions and 4 deletions

View File

@@ -22,7 +22,8 @@ namespace Content.Shared.Tools.Components
}
/// <summary>
/// Attempt event called *before* any do afters to see if the tool usage should succeed or not.
/// Attempt event called *before* any do afters to see if the tool usage should succeed or not.
/// Raised on both the tool and then target.
/// </summary>
public sealed class ToolUseAttemptEvent : CancellableEntityEventArgs
{