Browse Source

【BUG】MMO-19842:随从受伤填坑

meijun 3 years ago
parent
commit
90a0ddbcfb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      XmdsCommonServer/Plugin/Scene/XmdsServerScene.cs

+ 2 - 1
XmdsCommonServer/Plugin/Scene/XmdsServerScene.cs

@@ -238,8 +238,9 @@ namespace XmdsCommonServer.Plugin.Scene
 					return false;
 				}
 			}
+
 			
-			if(src != target && !JSGModule.IsExpectValidForPet(expectTarget))
+			if (src != target && (src.IsMonster || !JSGModule.IsExpectValidForPet(expectTarget)))
 			{
 				// 宠物攻击的时候
 				if (src.IsPet)