Skip to content

Commit

Permalink
Make test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Mar 28, 2024
1 parent bf63e5a commit 08eec57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .Lib9c.Tests/Model/Skill/Adventure/CombatTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,10 @@ public void DispelOnDuration_Affect()
[Fact]
public void DispelOnDuration_Nothing()
{
const int actionBuffId = 708000; // Dispel with duration
var actionBuffSheet = _tableSheets.ActionBuffSheet;

// Use Dispel first
var dispel = actionBuffSheet.Values.First(bf => bf.Id == actionBuffId);
var dispel = actionBuffSheet.Values.First(bf => bf.ActionBuffType == ActionBuffType.Dispel);
_player.AddBuff(BuffFactory.GetActionBuff(_player.Stats, dispel));
Assert.Single(_player.Buffs);

Expand Down
2 changes: 1 addition & 1 deletion .Lib9c.Tests/Model/Skill/Arena/ArenaCombatTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public void DispelOnDuration_Nothing()
);

// Use Dispel first
var dispel = _tableSheets.ActionBuffSheet.Values.First(bf => bf.Id == ActionBuffId);
var dispel = _tableSheets.ActionBuffSheet.Values.First(bf => bf.ActionBuffType == ActionBuffType.Dispel);
challenger.AddBuff(BuffFactory.GetActionBuff(challenger.Stats, dispel));
Assert.Single(challenger.Buffs);

Expand Down

0 comments on commit 08eec57

Please sign in to comment.