| | |
| | | |
| | | |
| | | // 这里 |
| | | if (dmgInfo.IsType(DamageType.Dodge) && !buffMgr.isControled[BattleConst.HardControlGroup]) |
| | | if (dmgInfo.IsType(DamageType.Dodge) /*&& !buffMgr.isControled[BattleConst.HardControlGroup]*/)//如果被控制了还闪避了 要看看服务器怎么处理了 |
| | | { |
| | | if (isLastHit) |
| | | { |
| | |
| | | { |
| | | battleField.battleEffectMgr.PlayEffect(this, 19999, heroRectTrans, Camp); |
| | | } |
| | | else |
| | | // else |
| | | // { |
| | | if ((dmgInfo.IsType(DamageType.Damage) || dmgInfo.IsRealdamage())) |
| | | { |
| | | if ((dmgInfo.IsType(DamageType.Damage) || dmgInfo.IsRealdamage())) |
| | | if (!buffMgr.isControled[BattleConst.HardControlGroup]) |
| | | { |
| | | if (!buffMgr.isControled[BattleConst.HardControlGroup]) |
| | | { |
| | | motionBase.PlayAnimation(MotionName.hit, false); |
| | | } |
| | | motionBase.PlayAnimation(MotionName.hit, false); |
| | | } |
| | | } |
| | | // } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | public virtual void OnDeath(Action _onDeathAnimationComplete) |
| | | { |
| | | motionBase.PlayAnimation(MotionName.dead, false, () => |
| | | buffMgr.RemoveAllBuff(); |
| | | motionBase.PlayDeadAnimation(() => |
| | | { |
| | | teamHero.isDead = true; |
| | | OnDeadAnimationComplete(); |
| | |
| | | // 或许看看溶解特效? YYL TODO |
| | | heroGo.SetActive(false); |
| | | |
| | | // 防止给死亡对象又上buff |
| | | buffMgr.RemoveAllBuff(); |
| | | } |
| | | |
| | |
| | | { |
| | | // 处理复活逻辑 |
| | | teamHero.curHp = GeneralDefine.GetFactValue(vNetData.HP, vNetData.HPEx); |
| | | teamHero.isDead = false; |
| | | heroGo.SetActive(true); |
| | | motionBase.PlayAnimation(MotionName.idle, true); |
| | | } |
| | |
| | | { |
| | | message = message, |
| | | useArtText = true, |
| | | followCharacter = false, |
| | | followCharacter = true, |
| | | scaleRatio = 1f, |
| | | isRage = true |
| | | }); |