Skip to content

Commit

Permalink
我怎么感觉好像应该是这样才对
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealKamisama committed Apr 1, 2024
1 parent e9421a0 commit c25647a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions WFBot/Features/Common/WFNotificationHandler.cs
Expand Up @@ -290,11 +290,13 @@ private void CheckInvasions()

private static IEnumerable<string> GetAllInvasionsCountedItems(WFInvasion inv)
{
foreach (var reward in inv.Attacker.Reward.countedItems)
if (!inv.vsInfestation)
{
yield return reward.Type;
foreach (var reward in inv.Attacker.Reward.countedItems)
{
yield return reward.Type;
}
}

foreach (var reward in inv.Defender.Reward.countedItems)
{
yield return reward.Type;
Expand Down
6 changes: 3 additions & 3 deletions WFBot/Features/Utils/WFObjects.cs
Expand Up @@ -1782,12 +1782,12 @@ public class WFInvasion
}
public class Attacker
{

[JsonProperty("reward")]
private RewardInfo reward1;
public RewardInfo Reward
{
get => reward1 ?? new RewardInfo();
set => reward1 = value;
get;
set;
}

[JsonProperty("faction")]
Expand Down

0 comments on commit c25647a

Please sign in to comment.