|
@@ -203,7 +203,9 @@ public abstract class L2Skill implements IChanceSkillTrigger
|
|
|
private final int _effectAbnormalLvl; // abnormal level for the additional effect type, e.g. poison lvl 1
|
|
|
private final int _effectId;
|
|
|
private final int _effectLvl; // normal effect level
|
|
|
-
|
|
|
+
|
|
|
+ private final boolean _nextActionIsAttack;
|
|
|
+
|
|
|
private final boolean _isPotion;
|
|
|
private final byte _element;
|
|
|
private final int _elementPower;
|
|
@@ -383,6 +385,8 @@ public abstract class L2Skill implements IChanceSkillTrigger
|
|
|
_effectId = set.getInteger("effectId", 0);
|
|
|
_effectLvl = set.getInteger("effectLevel", 0);
|
|
|
|
|
|
+ _nextActionIsAttack = set.getBool("nextActionAttack", false);
|
|
|
+
|
|
|
_element = set.getByte("element", (byte)-1);
|
|
|
_elementPower = set.getInteger("elementPower", 0);
|
|
|
|
|
@@ -619,6 +623,14 @@ public abstract class L2Skill implements IChanceSkillTrigger
|
|
|
return _effectType;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Return true if character should attack target after skill
|
|
|
+ */
|
|
|
+ public final boolean nextActionIsAttack()
|
|
|
+ {
|
|
|
+ return _nextActionIsAttack;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @return Returns the buffDuration.
|
|
|
*/
|