first commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using ClassicAssist.Shared;
|
||||
using ClassicAssist.Data.Macros.Commands;
|
||||
|
||||
namespace ClassicAssist.Data.Hotkeys.Commands
|
||||
{
|
||||
[HotkeyCommand( Name = "Use Last Object" )]
|
||||
public class UseLastObject : HotkeyCommand
|
||||
{
|
||||
public override void Execute()
|
||||
{
|
||||
int serial = Engine.Player?.LastObjectSerial ?? 0;
|
||||
|
||||
if ( serial != 0 )
|
||||
{
|
||||
ObjectCommands.UseObject( serial );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user