Store replaced skills and skip learning them.
Thanks to marciox25.
This commit is contained in:
@@ -58,6 +58,7 @@ public class ReplaceSkillBySkill extends AbstractEffect
|
||||
|
||||
final Skill addedSkill = SkillData.getInstance().getSkill(_replacementSkill.getSkillId(), _replacementSkill.getSkillLevel() < 1 ? knownSkill.getLevel() : _replacementSkill.getSkillLevel(), knownSkill.getSubLevel());
|
||||
player.addSkill(addedSkill, false);
|
||||
player.addReplacedSkill(_existingSkill.getSkillId());
|
||||
for (Shortcut shortcut : player.getAllShortCuts())
|
||||
{
|
||||
if ((shortcut.getType() == ShortcutType.SKILL) && (shortcut.getId() == knownSkill.getId()) && (shortcut.getLevel() == knownSkill.getLevel()))
|
||||
@@ -90,6 +91,7 @@ public class ReplaceSkillBySkill extends AbstractEffect
|
||||
|
||||
final Skill addedSkill = SkillData.getInstance().getSkill(_existingSkill.getSkillId(), _existingSkill.getSkillLevel() < 1 ? knownSkill.getLevel() : _existingSkill.getSkillLevel(), knownSkill.getSubLevel());
|
||||
player.addSkill(addedSkill, false);
|
||||
player.removeReplacedSkill(_existingSkill.getSkillId());
|
||||
for (Shortcut shortcut : player.getAllShortCuts())
|
||||
{
|
||||
if ((shortcut.getType() == ShortcutType.SKILL) && (shortcut.getId() == knownSkill.getId()) && (shortcut.getLevel() == knownSkill.getLevel()))
|
||||
|
||||
@@ -275,6 +275,7 @@ ReflectMagic: Deflects magical damage back to the attacker.
|
||||
ReflectSkill: Deflects physical/magical debuffs back to the attacker.
|
||||
RefuelAirship: Increases Airship's fuel.
|
||||
Relax: Sits down and increases HP regeneration until full.
|
||||
ReplaceSkillBySkill: While active replaces a skill with an alternative skill. (l2jmobius)
|
||||
ResetInstanceEntry: Resets instance re-entry time. (l2jmobius)
|
||||
ResistAbnormalByCategory: Buff/debuff resist stat.
|
||||
ResistDDMagic: Magic resist stat (magic attack 50% effective or 1 damage)
|
||||
|
||||
Reference in New Issue
Block a user