Prechádzať zdrojové kódy

update for skills, thx kerb

janiii 16 rokov pred
rodič
commit
28356f64a1

+ 7 - 0
L2_GameServer/java/net/sf/l2j/gameserver/model/L2Skill.java

@@ -237,6 +237,7 @@ public abstract class L2Skill implements IChanceSkillTrigger
 
     private final int _minPledgeClass;
     private final int[] _teleportCoords;
+    private final String _recallType;
     private final boolean _isOffensive;
     private final int _requiredCharges;
     private final int _maxCharges;
@@ -333,6 +334,7 @@ public abstract class L2Skill implements IChanceSkillTrigger
         else
         	_teleportCoords = null;
 
+        _recallType = set.getString("recallType", "");
          _isAdvancedFlag = set.getBool("isAdvancedFlag", false);
         _activationtime= set.getInteger("activationtime", 8);
         _activationchance= set.getInteger("activationchance", 30);
@@ -3157,4 +3159,9 @@ public abstract class L2Skill implements IChanceSkillTrigger
 	{
 		return _teleportCoords;
 	}
+	
+	public String getRecallType()
+	{
+		return _recallType;
+	}
 }

+ 1 - 0
L2_GameServer/java/net/sf/l2j/gameserver/templates/skills/L2SkillType.java

@@ -154,6 +154,7 @@ public enum L2SkillType
 	DETECT_WEAKNESS,
 	LUCK,
 	RECALL,
+	TELEPORT,
 	SUMMON_FRIEND,
 	REFLECT,
 	SPOIL,