Browse Source

取消无条件的单位死亡推送

大爷 1 year ago
parent
commit
81e1daa9ab
1 changed files with 2 additions and 2 deletions
  1. 2 2
      XmdsServerCS/XmdsServerEdgeJS/Zone/XmdsZoneNode.cs

+ 2 - 2
XmdsServerCS/XmdsServerEdgeJS/Zone/XmdsZoneNode.cs

@@ -81,7 +81,7 @@ namespace XmdsServerEdgeJS.Zone
             this.node.Start(instanceID, mapTemplateId, config.monsterHard, (byte)config.allowAutoGuard, config.calPKValue,
                 averageLevel, floorRatio, propRatio, killInterval, killFullNum, killFullNum, config.usespaceDiv,
                 (CommonAI.Data.SceneType)sceneType, gsData, (AreaType)areaType, isteam, canRiding);
-            this.node.Zone.OnUnitDead += zone_onUnitDead;
+            //this.node.Zone.OnUnitDead += zone_onUnitDead;
             //this.node.Zone.OnGameOver += zone_onGameOver;
             this.node.Zone.OnUnitGotInstanceItem += zone_onUnitGotInstanceItem;
             this.node.Zone.OnUnitPickUnit += zone_onUnitPickUnit;
@@ -105,7 +105,7 @@ namespace XmdsServerEdgeJS.Zone
 
             if(this.node != null && this.node.Zone != null)
             {
-                this.node.Zone.OnUnitDead -= zone_onUnitDead;
+                //this.node.Zone.OnUnitDead -= zone_onUnitDead;
                 //this.node.Zone.OnGameOver -= zone_onGameOver;
                 this.node.Zone.OnUnitGotInstanceItem -= zone_onUnitGotInstanceItem;
                 this.node.Zone.OnUnitPickUnit -= zone_onUnitPickUnit;