Fix macro durations and trained perfection

This commit is contained in:
Asriel Camora
2024-07-04 09:18:35 -07:00
parent 06ff82a8ca
commit 65d01aeed0
11 changed files with 27 additions and 25 deletions
+2 -2
View File
@@ -7,13 +7,13 @@ internal sealed class TricksOfTheTrade() : BaseAction(
)
{
public override bool CouldUse(Simulator s) =>
(s.Condition == Condition.Good || s.Condition == Condition.Excellent || s.HasEffect(EffectType.HeartAndSoul))
(s.Condition is Condition.Good or Condition.Excellent || s.HasEffect(EffectType.HeartAndSoul))
&& base.CouldUse(s);
public override void UseSuccess(Simulator s)
{
s.RestoreCP(20);
if (s.Condition != Condition.Good && s.Condition != Condition.Excellent)
if (s.Condition is not (Condition.Good or Condition.Excellent))
s.RemoveEffect(EffectType.HeartAndSoul);
}
}