Fixed issue #917 about a bug when unbinding a skill from a slot while being in a key combo.

This commit is contained in:
Ka0rX 2023-09-06 18:13:42 +01:00
parent a794f81a5f
commit 09ea9ab3a9

View File

@ -175,7 +175,7 @@ public class KeyCombos implements SkillCastingListener {
@Override
public void onTick() {
if (getCaster().getBoundSkills().isEmpty()) close();
if (getCaster().getBoundSkills().isEmpty()) getCaster().leaveSkillCasting();
else if (actionBarOptions != null) if (actionBarOptions.isSubtitle)
getCaster().getPlayer().sendTitle(" ", actionBarOptions.format(this), 0, 20, 0);
else getCaster().displayActionBar(actionBarOptions.format(this));