diff --git a/PlayerMethods.h b/PlayerMethods.h index b2da4c4..2a1f4de 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -1622,8 +1622,12 @@ namespace LuaPlayer int ResetTalentsCost(lua_State* L, Player* player) { +#ifdef TRINITY #ifdef CATA Eluna::Push(L, player->GetNextResetTalentsCost()); +#else + Eluna::Push(L, player->ResetTalentsCost()); +#endif #else Eluna::Push(L, player->resetTalentsCost()); #endif @@ -1634,7 +1638,7 @@ namespace LuaPlayer { bool no_cost = Eluna::CHECKVAL(L, 2, true); -#ifdef CATA +#ifdef TRINITY player->ResetTalents(no_cost); #else player->resetTalents(no_cost); @@ -1651,7 +1655,11 @@ namespace LuaPlayer bool disabled = Eluna::CHECKVAL(L, 3, false); bool learn_low_rank = Eluna::CHECKVAL(L, 4, true); +#ifdef TRINITY + player->RemoveSpell(entry, disabled, learn_low_rank); +#else player->removeSpell(entry, disabled, learn_low_rank); +#endif return 0; } @@ -2093,7 +2101,11 @@ namespace LuaPlayer int LearnSpell(lua_State* L, Player* player) { uint32 id = Eluna::CHECKVAL(L, 2); +#ifdef TRINITY + player->LearnSpell(id, false); +#else player->learnSpell(id, false); +#endif return 0; }