| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // B4 0E 玩家掉血 #tagCMRoleLostHP |
| | | |
| | | public class CB40E_tagCMRoleLostHP : GameNetPackBasic |
| | | { |
| | | public uint LostHP; |
| | | |
| | | public CB40E_tagCMRoleLostHP() |
| | | { |
| | | combineCmd = (ushort)0x03FE; |
| | | _cmd = (ushort)0xB40E; |
| | | } |
| | | |
| | | public override void WriteToBytes() |
| | | { |
| | | WriteBytes(LostHP, NetDataType.DWORD); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5121afaefec07cc4f86f4ad2dc43e6b8 |
| | | timeCreated: 1561389688 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | } |
| | | } |
| | | |
| | | if (ClientDungeonStageUtility.isClientDungeon |
| | | #if UNITY_EDITOR |
| | | || RuntimeLogUtility.TEST_CLIENT_PVP |
| | | #endif |
| | | ) |
| | | { |
| | | if (vNetData.ObjID == PlayerDatas.Instance.PlayerId) |
| | | { |
| | | if (vNetData.AttackType == (byte)HurtAttackType.Recovery) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | |
| | | GActor _target = null; |
| | | if (PersonalEnemy.m_SBindCDict.ContainsKey(vNetData.ObjID)) |
| | | { |
| | |
| | | {
|
| | | // hurtValue = int(dMaxHP*0.01*(1+atkSkillPer/10000.0))
|
| | | hurtValue = (uint)Mathf.Ceil(PlayerDatas.Instance.extersion.MaxHP * .01f * (1 + m_Owner.NpcConfig.PoisionAtk * Constants.F_DELTA));
|
| | | if (m_Owner.SelectTarget.ActorInfo.Hp <= hurtValue)
|
| | | {
|
| | | hurtValue = 0;
|
| | | }
|
| | | if (hurtValue != 0)
|
| | | {
|
| | | var _p = new CB40E_tagCMRoleLostHP();
|
| | | _p.LostHP = hurtValue;
|
| | | GameNetSystem.Instance.SendInfo(_p);
|
| | | }
|
| | | }
|
| | |
|
| | | AttackHandler.HurtObjs _hurtObject = new AttackHandler.HurtObjs
|