mirror of
https://github.com/azerothcore/mod-transmog
synced 2025-11-29 22:48:30 +08:00
Fixed Transmog module git history (please re-clone this repo)
This commit is contained in:
@@ -272,7 +272,7 @@ void Transmogrification::UpdateItem(Player* player, Item* item) const
|
||||
}
|
||||
}
|
||||
|
||||
void Transmogrification::DeleteFakeEntry(Player* player, uint8 slot, Item* itemTransmogrified, SQLTransaction* trans)
|
||||
void Transmogrification::DeleteFakeEntry(Player* player, uint8 /*slot*/, Item* itemTransmogrified, SQLTransaction* trans)
|
||||
{
|
||||
//if (!GetFakeEntry(item))
|
||||
// return false;
|
||||
@@ -280,7 +280,7 @@ void Transmogrification::DeleteFakeEntry(Player* player, uint8 slot, Item* itemT
|
||||
UpdateItem(player, itemTransmogrified);
|
||||
}
|
||||
|
||||
void Transmogrification::SetFakeEntry(Player* player, uint32 newEntry, uint8 slot, Item* itemTransmogrified)
|
||||
void Transmogrification::SetFakeEntry(Player* player, uint32 newEntry, uint8 /*slot*/, Item* itemTransmogrified)
|
||||
{
|
||||
uint64 itemGUID = itemTransmogrified->GetGUID();
|
||||
entryMap[player->GetGUID()][itemGUID] = newEntry;
|
||||
@@ -376,11 +376,6 @@ TransmogTrinityStrings Transmogrification::Transmogrify(Player* player, uint64 i
|
||||
itemTransmogrifier->ClearSoulboundTradeable(player);
|
||||
}
|
||||
|
||||
// trusting the client, if it got here it has to have enough money
|
||||
// ... unless client was modified
|
||||
if (cost) // 0 cost if reverting look
|
||||
player->ModifyMoney(-1 * cost, false);
|
||||
|
||||
return LANG_ERR_TRANSMOG_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user