Core/Taxi: Fixed applying reputation discount to first taxi segment

Closes #20713
This commit is contained in:
Shauren
2017-10-25 18:33:52 +02:00
parent b8dc4df220
commit d7e463dd9f

View File

@@ -22049,7 +22049,11 @@ bool Player::ActivateTaxiPathTo(std::vector<uint32> const& nodes, Creature* npc
uint64 money = GetMoney();
if (npc)
totalcost = (uint32)ceil(totalcost*GetReputationPriceDiscount(npc));
{
float discount = GetReputationPriceDiscount(npc);
totalcost = uint32(ceil(totalcost * discount));
firstcost = uint32(round(firstcost * discount));
}
if (money < totalcost)
{