From f51396aa70414798d3fa9d9c288feb18fb194b9f Mon Sep 17 00:00:00 2001 From: Trust Date: Sat, 21 Jul 2018 00:01:36 -0400 Subject: [PATCH] [Exploit Fix] AA Below Level Fix - When you are below level 52 with AA set above 0% it will revert the aa % to 0% --- zone/exp.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zone/exp.cpp b/zone/exp.cpp index 2902610a8..6d8f5c9a3 100644 --- a/zone/exp.cpp +++ b/zone/exp.cpp @@ -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); }