mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
Update Transmogrification.cpp (#172)
This commit is contained in:
@@ -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;
|
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;
|
return false;
|
||||||
|
|
||||||
if (!IgnoreReqClass && (proto->AllowableClass & playerClassMask) == 0)
|
if (!IgnoreReqClass && (proto->AllowableClass & playerClassMask) == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user