Update PlayerMethods.h (#204)

This commit is contained in:
manstfu
2024-12-19 16:06:51 +01:00
committed by GitHub
parent 53c9556c36
commit c38f0a1d2f

View File

@@ -2479,10 +2479,12 @@ namespace LuaPlayer
{ {
Unit* unit = Eluna::CHECKOBJ<Unit>(L, 2); Unit* unit = Eluna::CHECKOBJ<Unit>(L, 2);
#if defined TRINITY || AZEROTHCORE #if defined AZEROTHCORE
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit->GetFaction()); AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntryFromFactionTemplate(unit->GetFaction());
#elif defined TRINITY
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit->GetFaction());
#else #else
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit); AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit);
#endif #endif
if (!ahEntry) if (!ahEntry)
return 0; return 0;