mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-23 00:05:52 +01:00
Possibility to select a bound skill and thus upgrade it even if it is not unlocked.
This commit is contained in:
parent
943553632b
commit
520516ded8
@ -396,6 +396,12 @@ public class SkillList extends EditableInventory {
|
||||
if (item.getFunction().equals("slot")) {
|
||||
int index = slotSlots.indexOf(context.getSlot()) + 1;
|
||||
SkillSlot skillSlot = playerData.getProfess().getSkillSlot(index);
|
||||
//Select if the player is doing Shift Left Click
|
||||
if(context.getClickType() ==ClickType.SHIFT_LEFT){
|
||||
if(playerData.hasSkillBound(index))
|
||||
selected=playerData.getBoundSkill(index);
|
||||
return;
|
||||
}
|
||||
// unbind if there is a current spell.
|
||||
if (context.getClickType() == ClickType.RIGHT) {
|
||||
if (!playerData.hasSkillBound(index)) {
|
||||
|
@ -64,6 +64,7 @@ items:
|
||||
- ''
|
||||
- '&e► Left click to bind {selected}.'
|
||||
- '&e► Right click to unbind.'
|
||||
- '&e► Shift left click to select.'
|
||||
skill-level:
|
||||
slots: [ 6,15,24,33,42,51 ]
|
||||
function: level
|
||||
|
Loading…
Reference in New Issue
Block a user