Browse Source

【BUG】MMO-20170,MMO-20162:数值读取优化

meijun 3 năm trước cách đây
mục cha
commit
1ae83dec77

+ 1 - 4
XmdsVSPlugins/XmdsCommonSkill/Plugin/Skills/CardSkill/14_XuanWu/CardSkill_1430000.cs

@@ -65,10 +65,7 @@ namespace XmdsCommonSkill.Plugin.CardSkill
 		{
 			if(buff != null && buff.ID == CARD_XW_IGNORECTRL_HUDUN && !string.IsNullOrEmpty(result) && !BuffState.ENDResult_HuDunBreak.Equals(result))
 			{
-				for(int i = 0; i < this.mTriggerSameNums - 1; i++)
-				{
-					unit.CardModule.AddCard(s_ValueSet2.GetValue(this.mTriggerLv, 1), true);
-				}				
+				unit.CardModule.AddCard(s_ValueSet2.GetValue(this.mTriggerLv, this.mTriggerSameNums - 1), true);
 			}
 
 		}

+ 3 - 2
XmdsVSPlugins/XmdsCommonSkill/Plugin/Skills/Magic/Magic_310130.cs

@@ -22,9 +22,10 @@ namespace XmdsCommonSkill.Plugin.Skills.Magic
 
         protected override void OnSkillDamagePerEvent(BattleParams param)
         {
-			if (param.AtkProp.DamagePerID == 3 && mLaunchTalentLv > 0)      //额外段伤害
+			if (param.AtkProp.DamagePerID == 3)      //额外段伤害
 			{
-				param.SkillDamagePer = mValueSet4.GetValue(param.GameSkill.TalentSkillLevel3, mLaunchTalentLv);
+				int lvValue = System.Math.Max(1, mLaunchTalentLv);
+				param.SkillDamagePer = mValueSet4.GetValue(param.GameSkill.TalentSkillLevel3, lvValue);
 			}
 			else
 			{

+ 6 - 7
XmdsVSPlugins/XmdsCommonSkill/Plugin/base/JSGPlayerCardSkillBase.cs

@@ -121,13 +121,12 @@ namespace XmdsCommonSkill.Plugin.CardSkill
 					//log.Error("JSGCardSkillBase unitLaunchSpell launch_null 3: " + spellID + ", CardSkillID: " + this.SkillID);
 					return;
 				}
-
-				//hitter = hateUnit.Virtual as XmdsVirtual;
-				//if(hitter == null)
-				//{
-				//	log.Error("JSGCardSkillBase unitLaunchSpell launch_null 2: " + spellID + ", CardSkillID: " + this.SkillID);
-				//	return;
-				//}
+				hitter = hateUnit.Virtual as XmdsVirtual;
+				if (hitter == null)
+				{
+					log.Error("JSGCardSkillBase unitLaunchSpell launch_null 2: " + spellID + ", CardSkillID: " + this.SkillID);
+					return;
+				}
 			}
 
 			LaunchSpell launchSpll = ComSpellTemplate.Instance().GetCardSpell(spellID);