mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Taxi: Fixed applying reputation discount to first taxi segment
Closes #20713
(cherry picked from commit d7e463dd9f)
This commit is contained in:
@@ -21552,7 +21552,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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user