This commit is contained in:
SoulliesOfficial
2026-04-01 12:23:27 -04:00
parent aff7ac0e03
commit c3b1561375
933 changed files with 114333 additions and 119360 deletions

View File

@@ -19,7 +19,13 @@ namespace Continentis.Mods.Basic.Buffs
this.eventSubmodule = new EventSubmodule(this);
this.eventSubmodule.onGetAttacked.Add(this.GetType().FullName, new PrioritizedAction<AttackResult>(atkResult =>
{
attachedCharacter.Attack(atkResult.attacker, unitedStackSubmodule.stackAmount, null, false, true);
// 将反击入队到 Reaction Lane确保反击动画/特效与主流程不穿插
int counterDamage = unitedStackSubmodule.stackAmount;
CharacterBase attacker = atkResult.attacker;
EnqueueReaction(Cmd.Do(() =>
{
attachedCharacter.Attack(attacker, counterDamage, null, false, true);
}));
}));
}