mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-30 19:11:31 +00:00
Merge pull request #749 from fryguy503/aa-lowlevel-exploit
[Exploit Fix] AA Below Level Fix - When you are below level 52 with A…
This commit is contained in:
commit
e06c128ced
@ -512,6 +512,13 @@ void Client::AddEXP(uint32 in_add_exp, uint8 conlevel, bool resexp) {
|
||||
aaexp = had_aaexp; //watch for wrap
|
||||
}
|
||||
|
||||
// AA Sanity Checking for players who set aa exp and deleveled below allowed aa level.
|
||||
if (GetLevel() <= 50 and m_epp.perAA > 0) {
|
||||
Message(15, "You are below the level allowed to gain AA Experience. AA Experience set to 0%");
|
||||
aaexp = 0;
|
||||
m_epp.perAA = 0;
|
||||
}
|
||||
|
||||
// Now update our character's normal and AA xp
|
||||
SetEXP(exp, aaexp, resexp);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user