Skip to content

Commit b5079d0

Browse files
committed
Set last skill when using macros or scripts
1 parent 6d47cbc commit b5079d0

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Razor/Macros/Actions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,6 +1925,8 @@ public override bool Perform()
19251925
StealthSteps.Hide();
19261926
}
19271927

1928+
World.Player.LastSkill = m_Skill;
1929+
19281930
return true;
19291931
}
19301932

Razor/Scripts/Commands.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,8 @@ private static bool UseSkill(string command, Argument[] args, bool quiet, bool f
758758
else if (SkillHotKeys.UsableSkillsByName.TryGetValue(args[0].AsString().ToLower(), out skillId))
759759
{
760760
Client.Instance.SendToServer(new UseSkill(skillId));
761+
762+
World.Player.LastSkill = skillId;
761763
}
762764

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

0 commit comments

Comments
 (0)