Browse Source

【需求】MMO-20434:新增10105天书技能

meijun 3 years ago
parent
commit
18a01d67b2

+ 6 - 0
Common/CommonAI/Zone/Instance/InstanceZone.cs

@@ -1820,6 +1820,12 @@ namespace CommonAI.Zone.Instance
             uint targetUnitID = 0,
             Vector2 targetPos = null, int actionIndex = -1, int maxAffectUnit = 0, float pointDir = 0)
         {
+            if(launch == null)
+            {
+                log.Error("单位释放技能异常: " + launcher.Info.ID + ", " + new StackTrace().ToString());
+                return;
+            }
+
             if (CUtils.RandomPercent(RandomN, launch.LaunchPercent))
             {
                 float direction = pointDir == 0 ? launcher.Direction : pointDir;

+ 5 - 4
XmdsVSPlugins/XmdsCommonSkill/Plugin/Buffs/XmdsBuff.cs

@@ -303,12 +303,13 @@ namespace XmdsCommonSkill.Plugin.Buffs
 			TINAHU_DAMAGE_TAG_2				= 100102,   // 天书-伤害标记buff
 			TINAHU_DAMAGE_TAG_3				= 100103,   // 天书-伤害标记buff
 			TINAHU_DAMAGE_TAG_4				= 100104,   // 天书-伤害标记buff
+            TINAHU_DAMAGE_TAG_5             = 100105,   // 天书-伤害标记buff
 
 
-			////////////////////////////////////////////////////////////////////////////////////
-			/////////////////////             卡牌技能buff2021.8.12          //////////////////////
-			////////////////////////////////////////////////////////////////////////////////////
-			CARD_STORE_ENERGY				= 1999000,                      // 蓄势
+            ////////////////////////////////////////////////////////////////////////////////////
+            /////////////////////             卡牌技能buff2021.8.12          //////////////////////
+            ////////////////////////////////////////////////////////////////////////////////////
+            CARD_STORE_ENERGY				= 1999000,                      // 蓄势
 			// ---------------------------------------青龙---------------------------------------
 			CARD_QINGLONG					= 1100000,                      // 青龙之力
 			CARD_QL_ADDHP					= 1100001,						// 青龙- 加血buff

+ 12 - 8
XmdsVSPlugins/XmdsCommonSkill/Plugin/Interface/ComSpellTemplate.cs

@@ -61,22 +61,26 @@ namespace XmdsCommonSkill.Plugin.Interface
 			ZHANYAO_NM_2 = 70031,
 
 			// 天书特效
-			[Desc("天-天火")]
+			[Desc("天-天火")]
 			TIANSHU_1 = 100101,
-			[Desc("天-地火")]
+			[Desc("天-地火")]
 			TIANSHU_2 = 100102,
-			[Desc("天-阳雷")]
+			[Desc("天-阳雷")]
 			TIANSHU_3 = 100103,
-			[Desc("天-阴雷")]
+			[Desc("天-阴雷")]
 			TIANSHU_4 = 100104,
-			[Desc("天-天火-敌")]
+			[Desc("天-天火-敌")]
 			TIANSHU_1_ENEMY = 100105,
-			[Desc("天-地火-敌")]
+			[Desc("天-地火-敌")]
 			TIANSHU_2_ENEMY = 100106,
-			[Desc("天-阳雷-敌")]
+			[Desc("天-阳雷-敌")]
 			TIANSHU_3_ENEMY = 100107,
-			[Desc("天-阴雷-敌")]
+			[Desc("天-阴雷-敌")]
 			TIANSHU_4_ENEMY = 100108,
+			[Desc("天书-敌人")]
+			TIANSHU_5 = 100109,
+			[Desc("天书-")]
+			TIANSHU_5_ENEMY = 100110,
 
 			//boss特殊法术
 			DUNGEON_DEADSPELL = 910190,             //副本,小怪死亡,boss释放

+ 36 - 0
XmdsVSPlugins/XmdsCommonSkill/Plugin/PassiveSkills/other/Other_100105.cs

@@ -0,0 +1,36 @@
+using CommonAI.Zone;
+using CommonAI.Zone.Helper;
+using CommonAI.Zone.Instance;
+using CommonLang;
+using System;
+using XmdsCommon.Plugin;
+using XmdsCommonServer.Plugin;
+using XmdsCommonServer.XLS.Data;
+using XmdsCommonSkill.Plugin.Buffs;
+using XmdsCommonSkill.Plugin.PassiveSkills.Magic;
+using static CommonAI.Zone.Instance.InstanceUnit;
+using static XmdsCommonSkill.Plugin.Buffs.XmdsBuff_SwordShadow;
+using static XmdsCommonSkill.Plugin.Interface.ComSpellTemplate;
+
+namespace XmdsCommonSkill.Plugin.Skills.Magic
+{
+    /// <summary>
+    /// 其他技能
+    /// </summary>
+    public class Other_100105 : TianShuBase
+	{
+        public static readonly int ID = 100105;
+
+        public override int SkillID		{get { return ID; }}
+
+		protected override XmdsSpellID GetLaunchSpellID(bool self)
+		{
+			return self ? XmdsSpellID.TIANSHU_5 : XmdsSpellID.TIANSHU_5_ENEMY;
+		}
+
+		protected override int GetBindBuffID()
+		{
+			return (int)XmdsBuffBase.XmdsBuffList.TINAHU_DAMAGE_TAG_3;
+		}
+	}
+}

+ 1 - 0
XmdsVSPlugins/XmdsCommonSkill/XmdsCommonSkill.csproj

@@ -144,6 +144,7 @@
     <Compile Include="Plugin\Buffs\Xmds_Fridge.cs" />
     <Compile Include="Plugin\base\JSGPlayerCardSkillBase.cs" />
     <Compile Include="Plugin\FunctionEvent\base\XmdsBattleFunctionEvent_9003.cs" />
+    <Compile Include="Plugin\PassiveSkills\other\Other_100105.cs" />
     <Compile Include="Plugin\Skills\CardSkill\00_base\CardSkill_XuanWuBase.cs" />
     <Compile Include="Plugin\Skills\CardSkill\00_base\CardSkill_LiangYiBase.cs" />
     <Compile Include="Plugin\Skills\CardSkill\00_base\CardSkill_BaiHuBase.cs" />