Core/Players: implement Goblin's race entry discount bonus

This commit is contained in:
Warpten
2020-07-15 16:23:46 +02:00
committed by Ovahlord
parent 00a94593cd
commit d911a9bf74

View File

@@ -24216,6 +24216,10 @@ bool Player::GetBGAccessByLevel(BattlegroundTypeId bgTypeId) const
float Player::GetReputationPriceDiscount(Creature const* creature) const
{
ChrRacesEntry const* raceEntry = sChrRacesStore.LookupEntry(getRace());
if (raceEntry->Flags & 0x100)
return 0.8f;
FactionTemplateEntry const* vendor_faction = creature->GetFactionTemplateEntry();
if (!vendor_faction || !vendor_faction->Faction)
return 1.0f;