forked from Upstream/mmocore
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")) {
|
if (item.getFunction().equals("slot")) {
|
||||||
int index = slotSlots.indexOf(context.getSlot()) + 1;
|
int index = slotSlots.indexOf(context.getSlot()) + 1;
|
||||||
SkillSlot skillSlot = playerData.getProfess().getSkillSlot(index);
|
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.
|
// unbind if there is a current spell.
|
||||||
if (context.getClickType() == ClickType.RIGHT) {
|
if (context.getClickType() == ClickType.RIGHT) {
|
||||||
if (!playerData.hasSkillBound(index)) {
|
if (!playerData.hasSkillBound(index)) {
|
||||||
|
@ -64,6 +64,7 @@ items:
|
|||||||
- ''
|
- ''
|
||||||
- '&e► Left click to bind {selected}.'
|
- '&e► Left click to bind {selected}.'
|
||||||
- '&e► Right click to unbind.'
|
- '&e► Right click to unbind.'
|
||||||
|
- '&e► Shift left click to select.'
|
||||||
skill-level:
|
skill-level:
|
||||||
slots: [ 6,15,24,33,42,51 ]
|
slots: [ 6,15,24,33,42,51 ]
|
||||||
function: level
|
function: level
|
||||||
|
Loading…
Reference in New Issue
Block a user