Skip to content

Commit

Permalink
Update Transmogrification.cpp (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitzunu authored Aug 31, 2024
1 parent ce7ab57 commit c9522c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Transmogrification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,10 +886,10 @@ bool Transmogrification::SuitableForTransmogrification(ObjectGuid guid, ItemTemp
}
}

if ((proto->Flags2 & ITEM_FLAGS_EXTRA_HORDE_ONLY) && playerTeamId != TEAM_HORDE)
if (proto->HasFlag2(ITEM_FLAG2_FACTION_HORDE) && playerTeamId != TEAM_HORDE)
return false;

if ((proto->Flags2 & ITEM_FLAGS_EXTRA_ALLIANCE_ONLY) && playerTeamId != TEAM_ALLIANCE)
if (proto->HasFlag2(ITEM_FLAG2_FACTION_ALLIANCE) && playerTeamId != TEAM_ALLIANCE)
return false;

if (!IgnoreReqClass && (proto->AllowableClass & playerClassMask) == 0)
Expand Down

2 comments on commit c9522c3

@icedcolor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error message
E0020 Undefined identifiers "BIND_WHEN_EQUIPED" modules E:\azerothcore\modules\mod-transmog\src\Transmogrification.cpp 595
E0020 Undefined identifiers "ITEM_FLAGS_EXTRA_HORDE_ONLY" modules E:\azerothcore\modules\mod-transmog\src\Transmogrification.cpp 800
E0020 Undefined identifiers "ITEM_FLAGS_EXTRA_ALLIANCE_ONLY" modules E:\azerothcore\modules\mod-transmog\src\Transmogrification.cpp 803

@Nyeriah
Copy link
Member

@Nyeriah Nyeriah commented on c9522c3 Sep 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update your core before reporting compile errors.

Please sign in to comment.