Skip to content

Commit

Permalink
Fixed the tactic not twisting under some conditions when no fillers c…
Browse files Browse the repository at this point in the history
…an be used
  • Loading branch information
TheSorm committed Mar 6, 2022
1 parent ca49839 commit 6643101
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cs/RetSim/RetSim/Simulation/Tactics/EliteTactic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,17 @@ public override Event GetActionBetween(int start, int end, FightSimulation fight
{
if(fight.Player.Weapon.EffectiveSpeed > 2 * spellGCD && start + spellGCD < swingLeeway)
{
return CastFiller(start, end, fight);
var fillerEvent = CastFiller(start, end, fight);
if(fillerEvent != null)
return fillerEvent;
}
else
{
int sobTwistWindowStart = swing - 399;
int sobTwistWindowEnd = swing - 1;

int sobTwistWindowStart = swing - 399;
int sobTwistWindowEnd = swing - 1;

if (end >= sobTwistWindowStart && start <= sobTwistWindowEnd)
return new CastEvent(SealOfBlood, fight.Player, fight.Player, fight, Math.Max(start, sobTwistWindowStart));
}
if (end >= sobTwistWindowStart && start <= sobTwistWindowEnd)
return new CastEvent(SealOfBlood, fight.Player, fight.Player, fight, Math.Max(start, sobTwistWindowStart));

}
else
{
Expand Down

0 comments on commit 6643101

Please sign in to comment.