File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,14 @@ Arena1v1.VendorRating = 0
52
52
53
53
Arena1v1.ArenaPointsMulti = 0.64
54
54
55
+
56
+ #
57
+ # Arena1v1.ArenaPointsMinLevel
58
+ # Description: minlevel to get the arena points
59
+ # Default: 70
60
+
61
+ Arena1v1.ArenaPointsMinLevel = 70
62
+
55
63
#
56
64
# Arena1v1.PreventHealingTalents
57
65
# Description: If enabled, it prevents people from having healing talents.
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ void deleteTeamArenaForPlayer(Player* player)
62
62
if (queryPlayerTeam)
63
63
{
64
64
CharacterDatabase.Execute (" DELETE FROM `arena_team` WHERE `captainGuid`={} AND `type`=1" , player->GetGUID ().GetCounter ());
65
- CharacterDatabase.Execute (" DELETE FROM `arena_team_member` WHERE `guid`={}" , player->GetGUID ().GetCounter ());
65
+ CharacterDatabase.Execute (" DELETE FROM `arena_team_member` WHERE `guid`={} AND `type`=1 " , player->GetGUID ().GetCounter ());
66
66
}
67
67
}
68
68
@@ -416,7 +416,13 @@ class team_1v1arena : public ArenaTeamScript
416
416
{
417
417
if (at->GetType () == ARENA_TEAM_1V1)
418
418
{
419
- points *= sConfigMgr ->GetOption <float >(" Arena1v1.ArenaPointsMulti" , 0 .64f );
419
+ const auto Members = at->GetMembers ();
420
+ uint8 playerLevel = sCharacterCache ->GetCharacterLevelByGuid (Members.front ().Guid );
421
+
422
+ if (playerLevel >= sConfigMgr ->GetOption <uint32>(" Arena1v1.ArenaPointsMinLevel" , 70 ))
423
+ points *= sConfigMgr ->GetOption <float >(" Arena1v1.ArenaPointsMulti" , 0 .64f );
424
+ else
425
+ points *= 0 ;
420
426
}
421
427
}
422
428
You can’t perform that action at this time.
0 commit comments