Skip to content

Commit

Permalink
Fixes #398 (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiao921 authored May 21, 2022
1 parent b6af95d commit 2615ae7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R2API/Director/DirectorAPIhelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,9 @@ bool addToFamilies
) {
if (dccsPool) {
ForEachPoolCategoryInDccsPool(dccsPool, (poolCategory) => {
var isNotAFamilyCategory = poolCategory.name != MonsterPoolCategories.Family;
var isAFamilyCategoryAndShouldAddToIt = addToFamilies && poolCategory.name == MonsterPoolCategories.Family;
var isNotAFamilyCategory = poolCategory.name == MonsterPoolCategories.Standard;
var isAFamilyCategory = !isNotAFamilyCategory;
var isAFamilyCategoryAndShouldAddToIt = addToFamilies && isAFamilyCategory;
if (isNotAFamilyCategory || isAFamilyCategoryAndShouldAddToIt) {
ForEachPoolEntryInDccsPoolCategory(poolCategory, (poolEntry) => {
AddMonsterToPoolEntry(monsterCardHolder, poolEntry);
Expand Down

0 comments on commit 2615ae7

Please sign in to comment.