Skip to content

Commit

Permalink
Fix pvp subscriptions (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
versx committed Aug 30, 2020
1 parent ab1d26f commit 04a5d4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Data/Subscriptions/SubscriptionProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public async Task ProcessPvPSubscription(PokemonData pkmn)
(x.Rank ?? 4096) <= subscribedPokemon.MinimumRank &&
(x.Percentage ?? 0) >= subscribedPokemon.MinimumPercent) ?? false;

if (!(matchesGreat || matchesUltra))
if (!matchesGreat && !matchesUltra)
continue;

var embed = await pkmn.GeneratePokemonMessage(user.GuildId, client, _whConfig, null, loc.Name);
Expand Down

0 comments on commit 04a5d4e

Please sign in to comment.