更新
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Combat;
|
||||
using Continentis.MainGame.UI;
|
||||
using SLSFramework.General;
|
||||
using UnityEngine;
|
||||
@@ -100,6 +101,9 @@ namespace Continentis.MainGame.Character
|
||||
(attachedCharacter.characterView.hudContainer.enablingHUDs["CharacterBuffCollection"] as HUD_CharacterBuffCollection)
|
||||
?.AddBuffIcon(this);
|
||||
}
|
||||
|
||||
// 1.2c — 记录 Buff 首次施加日志
|
||||
CombatLogs.Instance?.LogBuffApply(this, attachedCharacter);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -114,6 +118,9 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
public override void Remove()
|
||||
{
|
||||
// 1.2c — 记录 Buff 移除日志
|
||||
CombatLogs.Instance?.LogBuffRemove(this);
|
||||
|
||||
OnBuffRemove();
|
||||
|
||||
if (iconSubmodule != null)
|
||||
@@ -189,5 +196,15 @@ namespace Continentis.MainGame.Character
|
||||
generalAttributeSubmodule?.RefreshAllModifiedAttributes();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 将一条命令加入 Reaction Lane,确保 Buff 触发的动画/视觉效果
|
||||
/// 在当前 Main Lane 命令完成后、下一条 Main Lane 命令执行前播放。
|
||||
/// Buff 中需要动画的被动响应(反击、护盾反伤等)应使用此方法入队。
|
||||
/// </summary>
|
||||
protected void EnqueueReaction(CommandBase cmd)
|
||||
{
|
||||
CommandQueueManager.Instance.AddCommand(cmd, CommandLane.Reaction);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user