Browse Source

【BUG】MMO-20150: buff结束监听没有区分那个buff,导致残卷有加球bug

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

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

@@ -63,7 +63,7 @@ namespace XmdsCommonSkill.Plugin.CardSkill
 
 
 		private void OnRemoveBuffEvent(XmdsVirtual unit, BuffState buff, string result, GameSkill sk)
 		private void OnRemoveBuffEvent(XmdsVirtual unit, BuffState buff, string result, GameSkill sk)
 		{
 		{
-			if(!string.IsNullOrEmpty(result) && !BuffState.ENDResult_HuDunBreak.Equals(result))
+			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++)
 				for(int i = 0; i < this.mTriggerSameNums - 1; i++)
 				{
 				{