mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
Merge pull request #859 from eqft/feature/rule_for_gm_level_cmd_with_target
Convert constant check in level_command() to a Rule
This commit is contained in:
+1
-1
@@ -2799,7 +2799,7 @@ void command_level(Client *c, const Seperator *sep)
|
||||
if ((level <= 0) || ((level > RuleI(Character, MaxLevel)) && (c->Admin() < commandLevelAboveCap))) {
|
||||
c->Message(0, "Error: #Level: Invalid Level");
|
||||
}
|
||||
else if (c->Admin() < 100) {
|
||||
else if (c->Admin() < RuleI(GM, MinStatusToLevelTarget)) {
|
||||
c->SetLevel(level, true);
|
||||
#ifdef BOTS
|
||||
if(RuleB(Bots, BotLevelsWithOwner))
|
||||
|
||||
Reference in New Issue
Block a user