mirror of
https://github.com/araxiaonline/mod-transmog.git
synced 2026-06-13 02:32:22 -04:00
Backed out other core changes until we update
This commit is contained in:
@@ -596,7 +596,7 @@ TransmogAcoreStrings Transmogrification::Transmogrify(Player* player, Item* item
|
||||
itemTransmogrified->SetNotRefundable(player);
|
||||
itemTransmogrified->ClearSoulboundTradeable(player);
|
||||
|
||||
if (itemTransmogrifier->GetTemplate()->Bonding == BIND_WHEN_EQUIPPED || itemTransmogrifier->GetTemplate()->Bonding == BIND_WHEN_USE)
|
||||
if (itemTransmogrifier->GetTemplate()->Bonding == BIND_WHEN_EQUIPED || itemTransmogrifier->GetTemplate()->Bonding == BIND_WHEN_USE)
|
||||
itemTransmogrifier->SetBinding(true);
|
||||
|
||||
itemTransmogrifier->SetOwnerGUID(player->GetGUID());
|
||||
@@ -801,10 +801,12 @@ bool Transmogrification::SuitableForTransmogrification(Player* player, ItemTempl
|
||||
}
|
||||
}
|
||||
|
||||
if (proto->HasFlag2(ITEM_FLAG2_FACTION_HORDE) && player->GetTeamId() != TEAM_HORDE)
|
||||
// if (proto->HasFlag2(ITEM_FLAG2_FACTION_HORDE) && player->GetTeamId() != TEAM_HORDE)
|
||||
if (proto->Flags2 & ITEM_FLAG2_FACTION_HORDE != 0 && player->GetTeamId() != TEAM_HORDE)
|
||||
return false;
|
||||
|
||||
if (proto->HasFlag2(ITEM_FLAG2_FACTION_ALLIANCE) && player->GetTeamId() != TEAM_ALLIANCE)
|
||||
// if (proto->HasFlag2(ITEM_FLAG2_FACTION_ALLIANCE) && player->GetTeamId() != TEAM_ALLIANCE)
|
||||
if (proto->Flags2 & ITEM_FLAG2_FACTION_ALLIANCE != 0 && player->GetTeamId() != TEAM_ALLIANCE)
|
||||
return false;
|
||||
|
||||
if (!IgnoreReqClass && (proto->AllowableClass & player->getClassMask()) == 0)
|
||||
@@ -890,10 +892,12 @@ bool Transmogrification::SuitableForTransmogrification(ObjectGuid guid, ItemTemp
|
||||
}
|
||||
}
|
||||
|
||||
if (proto->HasFlag2(ITEM_FLAG2_FACTION_HORDE) && playerTeamId != TEAM_HORDE)
|
||||
// if (proto->HasFlag2(ITEM_FLAG2_FACTION_HORDE) && playerTeamId != TEAM_HORDE)
|
||||
if (proto->Flags2 & ITEM_FLAG2_FACTION_HORDE != 0 && playerTeamId != TEAM_HORDE)
|
||||
return false;
|
||||
|
||||
if (proto->HasFlag2(ITEM_FLAG2_FACTION_ALLIANCE) && playerTeamId != TEAM_ALLIANCE)
|
||||
// if (proto->HasFlag2(ITEM_FLAG2_FACTION_ALLIANCE) && playerTeamId != TEAM_ALLIANCE)
|
||||
if (proto->Flags2 & ITEM_FLAG2_FACTION_ALLIANCE != 0 && playerTeamId != TEAM_ALLIANCE)
|
||||
return false;
|
||||
|
||||
if (!IgnoreReqClass && (proto->AllowableClass & playerClassMask) == 0)
|
||||
|
||||
Reference in New Issue
Block a user