Reseting the remaining skill reuse time on each item equip is wrong.
This commit is contained in:
@@ -625,8 +625,7 @@ public abstract class Inventory extends ItemContainer
|
||||
// Active, non offensive, skills start with reuse on equip.
|
||||
if (skill.isActive() && !skill.isBad() && !skill.isTransformation() && (Config.ITEM_EQUIP_ACTIVE_SKILL_REUSE > 0) && playable.getActingPlayer().hasEnteredWorld())
|
||||
{
|
||||
final long reuse = playable.getSkillRemainingReuseTime(skill.getReuseHashCode());
|
||||
playable.addTimeStamp(skill, reuse > 0 ? reuse : skill.getReuseDelay() > 0 ? skill.getReuseDelay() : Config.ITEM_EQUIP_ACTIVE_SKILL_REUSE);
|
||||
playable.addTimeStamp(skill, skill.getReuseDelay() > 0 ? skill.getReuseDelay() : Config.ITEM_EQUIP_ACTIVE_SKILL_REUSE);
|
||||
updateTimestamp = true;
|
||||
}
|
||||
}
|
||||
@@ -727,8 +726,7 @@ public abstract class Inventory extends ItemContainer
|
||||
// Active, non offensive, skills start with reuse on equip.
|
||||
if (!skill.isBad() && !skill.isTransformation() && (Config.ITEM_EQUIP_ACTIVE_SKILL_REUSE > 0) && playable.getActingPlayer().hasEnteredWorld())
|
||||
{
|
||||
final long reuse = playable.getSkillRemainingReuseTime(skill.getReuseHashCode());
|
||||
playable.addTimeStamp(skill, reuse > 0 ? reuse : skill.getReuseDelay() > 0 ? skill.getReuseDelay() : Config.ITEM_EQUIP_ACTIVE_SKILL_REUSE);
|
||||
playable.addTimeStamp(skill, skill.getReuseDelay() > 0 ? skill.getReuseDelay() : Config.ITEM_EQUIP_ACTIVE_SKILL_REUSE);
|
||||
}
|
||||
|
||||
updateTimestamp = true;
|
||||
@@ -794,8 +792,7 @@ public abstract class Inventory extends ItemContainer
|
||||
// Active, non offensive, skills start with reuse on equip.
|
||||
if (skill.isActive() && !skill.isBad() && !skill.isTransformation() && (Config.ITEM_EQUIP_ACTIVE_SKILL_REUSE > 0) && playable.getActingPlayer().hasEnteredWorld())
|
||||
{
|
||||
final long reuse = playable.getSkillRemainingReuseTime(skill.getReuseHashCode());
|
||||
playable.addTimeStamp(skill, reuse > 0 ? reuse : skill.getReuseDelay() > 0 ? skill.getReuseDelay() : Config.ITEM_EQUIP_ACTIVE_SKILL_REUSE);
|
||||
playable.addTimeStamp(skill, skill.getReuseDelay() > 0 ? skill.getReuseDelay() : Config.ITEM_EQUIP_ACTIVE_SKILL_REUSE);
|
||||
updateTimestamp = true;
|
||||
}
|
||||
}
|
||||
@@ -960,8 +957,7 @@ public abstract class Inventory extends ItemContainer
|
||||
// Active, non offensive, skills start with reuse on equip.
|
||||
if (!itemSkill.isBad() && !itemSkill.isTransformation() && (Config.ARMOR_SET_EQUIP_ACTIVE_SKILL_REUSE > 0) && playable.getActingPlayer().hasEnteredWorld())
|
||||
{
|
||||
final long reuse = playable.getSkillRemainingReuseTime(itemSkill.getReuseHashCode());
|
||||
playable.addTimeStamp(itemSkill, reuse > 0 ? reuse : itemSkill.getReuseDelay() > 0 ? itemSkill.getReuseDelay() : Config.ARMOR_SET_EQUIP_ACTIVE_SKILL_REUSE);
|
||||
playable.addTimeStamp(itemSkill, itemSkill.getReuseDelay() > 0 ? itemSkill.getReuseDelay() : Config.ARMOR_SET_EQUIP_ACTIVE_SKILL_REUSE);
|
||||
}
|
||||
|
||||
updateTimeStamp = true;
|
||||
|
||||
Reference in New Issue
Block a user