From 2d81bd23eb5cb3502b7ce0eac553c9e225759069 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sat, 14 Jun 2014 12:35:16 +0300 Subject: [PATCH] Update LuaFunctions.cpp --- LuaFunctions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index 5bc6fe8..5fda33f 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -661,7 +661,7 @@ ElunaRegister PlayerMethods[] = { "UnbindInstance", &LuaPlayer::UnbindInstance }, // :UnbindInstance(map, difficulty) - Unbinds the player from an instance { "RemoveFromBattlegroundRaid", &LuaPlayer::RemoveFromBattlegroundRaid }, // :RemoveFromBattlegroundRaid() - Removes the player from a battleground or battlefield raid #if (!defined(TBC) && !defined(CLASSIC)) - { "ResetAchievements", &LuaPlayer::ResetAchievements }, // :ResetAchievements() - Resets playeräs achievements + { "ResetAchievements", &LuaPlayer::ResetAchievements }, // :ResetAchievements() - Resets player�s achievements #endif { "KickPlayer", &LuaPlayer::KickPlayer }, // :KickPlayer() - Kicks player from server { "LogoutPlayer", &LuaPlayer::LogoutPlayer }, // :LogoutPlayer([save]) - Logs the player out and saves if true @@ -697,7 +697,7 @@ ElunaRegister PlayerMethods[] = ElunaRegister CreatureMethods[] = { // Getters - { "GetAITarget", &LuaCreature::GetAITarget }, // :GetAITarget(type[, playeronly, position, distance, aura]) - Get an unit in threat list + { "GetAITarget", &LuaCreature::GetAITarget }, // :GetAITarget(type[, playeronly, position, distance, aura]) - Get an unit in threat list. type can be 0 (random), 1 (topaggro), 2 (botaggro), 3 (nearest), 4 (farthest). If for example type 1 is used and position is 4, the 5th top aggro is selected, 0 is the top aggro (default). For random target position means the amount of top targets to choose from. positive distance tells that target should be within given radius, negative means target shouldnt be inside given radius. positive aura means target needs to have the aura, negative means target should not have the aura { "GetAITargets", &LuaCreature::GetAITargets }, // :GetAITargets() - Get units in threat list { "GetAITargetsCount", &LuaCreature::GetAITargetsCount }, // :GetAITargetsCount() - Get threat list size { "GetHomePosition", &LuaCreature::GetHomePosition }, // :GetHomePosition() - Returns x,y,z,o of spawn position