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);
|
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user