Skip to content

Commit

Permalink
Set last skill when using macros or scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
markdwags committed Apr 30, 2021
1 parent 6d47cbc commit b5079d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Razor/Macros/Actions.cs
Expand Up @@ -1925,6 +1925,8 @@ public override bool Perform()
StealthSteps.Hide();
}

World.Player.LastSkill = m_Skill;

return true;
}

Expand Down
2 changes: 2 additions & 0 deletions Razor/Scripts/Commands.cs
Expand Up @@ -758,6 +758,8 @@ private static bool UseSkill(string command, Argument[] args, bool quiet, bool f
else if (SkillHotKeys.UsableSkillsByName.TryGetValue(args[0].AsString().ToLower(), out skillId))
{
Client.Instance.SendToServer(new UseSkill(skillId));

World.Player.LastSkill = skillId;
}

if (skillId == (int)SkillName.Stealth && !World.Player.Visible)
Expand Down

0 comments on commit b5079d0

Please sign in to comment.