Skip to content

Commit fd819aa

Browse files
committed
Enable functions
1 parent 8c9b72f commit fd819aa

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

methods/TrinityCore/MapMethods.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,15 @@ namespace LuaMap
372372
{
373373
// Getters
374374
{ "GetName", &LuaMap::GetName },
375+
{ "GetDifficulty", &LuaMap::GetDifficulty },
375376
{ "GetInstanceId", &LuaMap::GetInstanceId },
376377
{ "GetInstanceData", &LuaMap::GetInstanceData },
377378
{ "GetPlayerCount", &LuaMap::GetPlayerCount },
378379
{ "GetPlayers", &LuaMap::GetPlayers },
379380
{ "GetMapId", &LuaMap::GetMapId },
380-
{ "GetWorldObject", &LuaMap::GetWorldObject },
381-
{ "GetDifficulty", &LuaMap::GetDifficulty },
382381
{ "GetAreaId", &LuaMap::GetAreaId },
383382
{ "GetHeight", &LuaMap::GetHeight },
383+
{ "GetWorldObject", &LuaMap::GetWorldObject },
384384

385385
// Setters
386386
{ "SetWeather", &LuaMap::SetWeather },

methods/TrinityCore/UnitMethods.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ namespace LuaUnit
242242
#if ELUNA_EXPANSION < EXP_RETAIL
243243
E->Push(unit->IsSpiritGuide());
244244
#else
245-
E->Push(unit->IsSpiritService());
245+
E->Push(unit->IsAreaSpiritHealer());
246246
#endif
247247
return 1;
248248
}
@@ -668,7 +668,6 @@ namespace LuaUnit
668668
return 1;
669669
}
670670

671-
#if ELUNA_EXPANSION < EXP_RETAIL
672671
/**
673672
* Returns the [Unit]'s base spell power
674673
*
@@ -682,10 +681,13 @@ namespace LuaUnit
682681
if (spellschool >= MAX_SPELL_SCHOOL)
683682
return 1;
684683

684+
#if ELUNA_EXPANSION < EXP_RETAIL
685685
E->Push(unit->GetUInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS + spellschool));
686+
#else
687+
E->Push(unit->GetOwner()->ToPlayer()->m_activePlayerData->ModDamageDonePos[spellschool]); //Not sure if this is correct
688+
#endif
686689
return 1;
687690
}
688-
#endif
689691

690692
/**
691693
* Returns the [Unit]'s current victim target or nil.

0 commit comments

Comments
 (0)