mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix TC build
This commit is contained in:
@@ -2222,7 +2222,7 @@ namespace LuaPlayer
|
||||
#ifndef TRINITY
|
||||
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit);
|
||||
#else
|
||||
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit->getFaction());
|
||||
AuctionHouseEntry const* ahEntry = AuctionHouseMgr::GetAuctionHouseEntry(unit->GetFaction());
|
||||
#endif
|
||||
if (!ahEntry)
|
||||
return 0;
|
||||
|
||||
@@ -1146,7 +1146,11 @@ namespace LuaUnit
|
||||
*/
|
||||
int GetFaction(lua_State* L, Unit* unit)
|
||||
{
|
||||
#ifdef TRINITY
|
||||
Eluna::Push(L, unit->GetFaction());
|
||||
#else
|
||||
Eluna::Push(L, unit->getFaction());
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -1476,7 +1480,11 @@ namespace LuaUnit
|
||||
int SetFaction(lua_State* L, Unit* unit)
|
||||
{
|
||||
uint32 factionId = Eluna::CHECKVAL<uint32>(L, 2);
|
||||
#ifdef TRINITY
|
||||
unit->SetFaction(factionId);
|
||||
#else
|
||||
unit->setFaction(factionId);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user