Restore actions on player login.

Contributed by Index.
This commit is contained in:
MobiusDevelopment
2022-07-28 21:10:42 +00:00
parent 6eb6b14ebd
commit e14839c951
10 changed files with 110 additions and 0 deletions

View File

@@ -14641,6 +14641,10 @@ public class Player extends Playable
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
}
else if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
}
else
{
final Item item = getInventory().getItemByObjectId(shortcut.getId());
@@ -14668,6 +14672,13 @@ public class Player extends Playable
continue;
}
if (shortcut.getType() == ShortcutType.ACTION)
{
sendPacket(new ExActivateAutoShortcut(shortcut, true));
AutoUseTaskManager.getInstance().addAutoAction(this, shortcut.getId());
continue;
}
final Skill knownSkill = getKnownSkill(shortcut.getId());
if (knownSkill != null)
{