플레이어 체력 자연 회복 기능 추가

전투 상태 감지 기능
player stat으로 관리 가능
This commit is contained in:
2026-02-25 21:09:19 +09:00
parent a27a59d176
commit d066290607
4 changed files with 107 additions and 2 deletions

View File

@@ -118,6 +118,12 @@ namespace Northbound
{
var damageable = targetObj.GetComponent<IDamageable>();
damageable?.TakeDamage(_playerStats?.GetDamage() ?? 10, attackerNetworkId);
// 공격자를 전투 상태로 기록 (체력 회복 방지)
if (_networkPlayerController != null)
{
_networkPlayerController.MarkInCombat();
}
}
}