Skip to content

Commit 8c8421d

Browse files
committed
VMaNGOS: Removed functions that were removed from core
Both the functions and the associated flags have been removed from VMaNGOS.
1 parent a1d26bd commit 8c8421d

1 file changed

Lines changed: 3 additions & 30 deletions

File tree

methods/VMangos/PlayerMethods.h

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -54,20 +54,6 @@ namespace LuaPlayer
5454
return 1;
5555
}
5656

57-
/**
58-
* Returns true if [Player] has specified login flag
59-
*
60-
* @param uint32 flag
61-
* @return bool hasLoginFlag
62-
*/
63-
int HasAtLoginFlag(Eluna* E, Player* player)
64-
{
65-
uint32 flag = E->CHECKVAL<uint32>(2);
66-
67-
E->Push(player->HasAtLoginFlag((AtLoginFlags)flag));
68-
return 1;
69-
}
70-
7157
/**
7258
* Returns true if [Player] has [Quest] for [GameObject]
7359
*
@@ -1414,19 +1400,6 @@ namespace LuaPlayer
14141400
return 0;
14151401
}
14161402

1417-
/**
1418-
* Sets the [Player]s login flag to the flag specified
1419-
*
1420-
* @param uint32 flag
1421-
*/
1422-
int SetAtLoginFlag(Eluna* E, Player* player)
1423-
{
1424-
uint32 flag = E->CHECKVAL<uint32>(2);
1425-
1426-
player->SetAtLoginFlag((AtLoginFlags)flag);
1427-
return 0;
1428-
}
1429-
14301403
/**
14311404
* Sets the [Player]s sheathe state to the state specified
14321405
*
@@ -3485,7 +3458,6 @@ namespace LuaPlayer
34853458
{ "SetSkill", &LuaPlayer::SetSkill },
34863459
{ "SetFactionForRace", &LuaPlayer::SetFactionForRace },
34873460
{ "SetDrunkValue", &LuaPlayer::SetDrunkValue },
3488-
{ "SetAtLoginFlag", &LuaPlayer::SetAtLoginFlag },
34893461
{ "SetPlayerLock", &LuaPlayer::SetPlayerLock },
34903462
{ "SetGender", &LuaPlayer::SetGender },
34913463
{ "SetSheath", &LuaPlayer::SetSheath },
@@ -3517,7 +3489,6 @@ namespace LuaPlayer
35173489
{ "HasQuest", &LuaPlayer::HasQuest },
35183490
{ "InBattlegroundQueue", &LuaPlayer::InBattlegroundQueue },
35193491
{ "CanSpeak", &LuaPlayer::CanSpeak },
3520-
{ "HasAtLoginFlag", &LuaPlayer::HasAtLoginFlag },
35213492
{ "CanUninviteFromGroup", &LuaPlayer::CanUninviteFromGroup },
35223493
{ "IsRested", &LuaPlayer::IsRested },
35233494
{ "IsVisibleForPlayer", &LuaPlayer::IsVisibleForPlayer },
@@ -3679,7 +3650,9 @@ namespace LuaPlayer
36793650
{ "CanRewardQuest", METHOD_REG_NONE }, // not implemented
36803651
{ "RunCommand", METHOD_REG_NONE }, // not implemented
36813652
{ "HasRecruited", METHOD_REG_NONE }, // not implemented
3682-
{ "IsRecruited", METHOD_REG_NONE } // not implemented
3653+
{ "IsRecruited", METHOD_REG_NONE }, // not implemented
3654+
{ "HasAtLoginFlag", METHOD_REG_NONE }, // function removed from core
3655+
{ "SetAtLoginFlag", METHOD_REG_NONE } // function removed from core
36833656
};
36843657
};
36853658
#endif

0 commit comments

Comments
 (0)