mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Update PlayerMethods.h (#204)
This commit is contained in:
@@ -2479,10 +2479,12 @@ namespace LuaPlayer
|
||||
{
|
||||
Unit* unit = Eluna::CHECKOBJ<Unit>(L, 2);
|
||||
|
||||
#if defined TRINITY || AZEROTHCORE
|
||||
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit->GetFaction());
|
||||
#if defined AZEROTHCORE
|
||||
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntryFromFactionTemplate(unit->GetFaction());
|
||||
#elif defined TRINITY
|
||||
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit->GetFaction());
|
||||
#else
|
||||
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit);
|
||||
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit);
|
||||
#endif
|
||||
if (!ahEntry)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user