五张牌!
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Continentis.MainGame.Character
|
||||
{
|
||||
public void RoundStart()
|
||||
{
|
||||
buffList.For(buff => buff.combatRoundTimeSubmodule?.Update());
|
||||
buffList.For(buff => buff.roundCountSubmodule?.Update());
|
||||
buffList.For(buff => buff.eventSubmodule?.onRoundStart?.Invoke());
|
||||
}
|
||||
|
||||
@@ -49,6 +49,11 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
public void ActionStart()
|
||||
{
|
||||
if (owner.actionCountThisRound == 0)
|
||||
{
|
||||
buffList.For(buff => buff.roundFirstActionCountSubmodule?.Update());
|
||||
}
|
||||
|
||||
buffList.For(buff => buff.actionCountSubmodule?.Update());
|
||||
buffList.For(buff => buff.eventSubmodule?.onActionStart?.Invoke());
|
||||
}
|
||||
|
||||
@@ -52,6 +52,19 @@ namespace Continentis.MainGame.Character
|
||||
owner.ModifyAttribute("Mana", owner.GetAttribute("ManaRecoverPerAction"));
|
||||
owner.ClampAttribute("Mana", 0, owner.GetAttribute("MaximumMana"));
|
||||
}, 999));
|
||||
|
||||
onActionStart.InsertByPriority("DefenseReset", new EventUnit(() =>
|
||||
{
|
||||
if (owner.GetAttribute("KeepBlockOnActionStart") <= 0)
|
||||
{
|
||||
owner.SetAttribute("Block", 0);
|
||||
}
|
||||
|
||||
if (owner.GetAttribute("KeepDodgeOnActionStart") <= 0)
|
||||
{
|
||||
owner.SetAttribute("Dodge", 0);
|
||||
}
|
||||
}, 998));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user