Transfer auto use with shortcut replacements.

This commit is contained in:
MobiusDevelopment
2021-09-21 21:43:09 +00:00
parent 142a845657
commit b7c708d1f4
6 changed files with 6 additions and 0 deletions

View File

@ -232,6 +232,7 @@ public class ShortCuts implements IRestorable
if ((sc.getId() == skillId) && (sc.getType() == ShortcutType.SKILL))
{
final Shortcut newsc = new Shortcut(sc.getSlot(), sc.getPage(), sc.getType(), sc.getId(), skillLevel, skillSubLevel, 1);
newsc.setAutoUse(sc.isAutoUse());
_owner.sendPacket(new ShortCutRegister(newsc));
_owner.registerShortCut(newsc);
}