更新
This commit is contained in:
@@ -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);
|
||||
}));
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user