|
@@ -192,7 +192,7 @@ public class Skill implements IIdentifiable
|
|
private final boolean _isDebuff;
|
|
private final boolean _isDebuff;
|
|
|
|
|
|
private final boolean _isSuicideAttack;
|
|
private final boolean _isSuicideAttack;
|
|
- private final boolean _canBeDispeled;
|
|
|
|
|
|
+ private final boolean _irreplaceableBuff;
|
|
|
|
|
|
private final boolean _isClanSkill;
|
|
private final boolean _isClanSkill;
|
|
private final boolean _excludedFromCheck;
|
|
private final boolean _excludedFromCheck;
|
|
@@ -347,7 +347,7 @@ public class Skill implements IIdentifiable
|
|
|
|
|
|
_flyType = set.getEnum("flyType", FlyType.class, null);
|
|
_flyType = set.getEnum("flyType", FlyType.class, null);
|
|
|
|
|
|
- _canBeDispeled = set.getBoolean("canBeDispeled", true);
|
|
|
|
|
|
+ _irreplaceableBuff = set.getBoolean("irreplaceableBuff", false);
|
|
|
|
|
|
_excludedFromCheck = set.getBoolean("excludedFromCheck", false);
|
|
_excludedFromCheck = set.getBoolean("excludedFromCheck", false);
|
|
_simultaneousCast = set.getBoolean("simultaneousCast", false);
|
|
_simultaneousCast = set.getBoolean("simultaneousCast", false);
|
|
@@ -1595,9 +1595,13 @@ public class Skill implements IIdentifiable
|
|
_refId = val;
|
|
_refId = val;
|
|
}
|
|
}
|
|
|
|
|
|
- public boolean canBeDispeled()
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Verify if the skill can be replaced.
|
|
|
|
+ * @return {@code true} if skill can be replaced, {@code false} otherwise
|
|
|
|
+ */
|
|
|
|
+ public boolean isIrreplaceableBuff()
|
|
{
|
|
{
|
|
- return _canBeDispeled;
|
|
|
|
|
|
+ return _irreplaceableBuff;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1606,7 +1610,7 @@ public class Skill implements IIdentifiable
|
|
*/
|
|
*/
|
|
public boolean canBeStolen()
|
|
public boolean canBeStolen()
|
|
{
|
|
{
|
|
- return !isPassive() && !isToggle() && !isDebuff() && !isHeroSkill() && !isGMSkill() && !(isStatic() && (getId() != CommonSkill.CARAVANS_SECRET_MEDICINE.getId())) && canBeDispeled() && (getId() != CommonSkill.SERVITOR_SHARE.getId());
|
|
|
|
|
|
+ return !isPassive() && !isToggle() && !isDebuff() && !isHeroSkill() && !isGMSkill() && !isIrreplaceableBuff() && !(isStatic() && (getId() != CommonSkill.CARAVANS_SECRET_MEDICINE.getId()) && (getMagicLevel() >= 0));
|
|
}
|
|
}
|
|
|
|
|
|
public boolean isClanSkill()
|
|
public boolean isClanSkill()
|