yyl
2025-11-27 0a01580b727239e0e764c6b71425f3dbfa91e0c5
Main/System/Battle/BattleObject/BattleObject.cs
@@ -358,6 +358,7 @@
            {
                if (!buffMgr.isControled[BattleConst.HardControlGroup])
                {
                    battleField.soundManager.PlayEffectSound(teamHero.heroConfig.HitSFX);
                    motionBase.PlayAnimation(MotionName.hit, false);
                }
            }
@@ -431,6 +432,7 @@
    public virtual void OnDeath(Action _onDeathAnimationComplete)
    {
        buffMgr.RemoveAllBuff();
        battleField.soundManager.PlayEffectSound(teamHero.heroConfig.DeathSFX);
        motionBase.PlayDeadAnimation(() =>
        {
            teamHero.isDead = true;
@@ -702,4 +704,9 @@
        }
#endif
    }
    public bool IsTianziBoss()
    {
        return battleField.MapID == 30020 && battleField.FindBoss() == this;
    }
}