|
@@ -202,13 +202,16 @@ namespace CommonAI.Zone.Instance
|
|
|
|
|
|
//排除怪物回血
|
|
|
#if JSG_DMG_LOG
|
|
|
- int atkPropID = (source == null || source.Attack == null || source.Attack.Properties == null) ? 0 : source.Attack.Properties.GetAttackID();
|
|
|
- if (atkPropID != 9999901 && (finalHP < -100000000 || finalHP > 100000000) && !(this.IsMonster && hp == this.MaxHP))
|
|
|
+ if(this.IsPlayer)
|
|
|
{
|
|
|
- string stackInfo = new StackTrace().ToString();
|
|
|
- log.Error("伤害异常: " + finalHP + ", ID" + this.Info.ID + ", " + (sender == null ? "-1" : sender.PlayerUUID)
|
|
|
- + JSGModule.GetAttackSourceDes(source) + ", " + stackInfo);
|
|
|
- }
|
|
|
+ int atkPropID = (source == null || source.Attack == null || source.Attack.Properties == null) ? 0 : source.Attack.Properties.GetAttackID();
|
|
|
+ if (atkPropID != 9999901 && (finalHP < -100000000 || finalHP > 100000000) && !(this.IsMonster && hp == this.MaxHP))
|
|
|
+ {
|
|
|
+ string stackInfo = new StackTrace().ToString();
|
|
|
+ log.Error("伤害异常: " + finalHP + ", ID" + this.Info.ID + ", " + (sender == null ? "-1" : sender.PlayerUUID)
|
|
|
+ + JSGModule.GetAttackSourceDes(source) + ", " + stackInfo);
|
|
|
+ }
|
|
|
+ }
|
|
|
#endif
|
|
|
return finalHP;
|
|
|
}
|