Reseting the remaining skill reuse time on each item equip is wrong.
This commit is contained in:
		@@ -634,8 +634,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;
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
@@ -736,8 +735,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;
 | 
			
		||||
@@ -803,8 +801,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;
 | 
			
		||||
						}
 | 
			
		||||
					}
 | 
			
		||||
@@ -969,8 +966,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