Skip to content

Commit af9221a

Browse files
authored
Merge pull request #28 from SWG-Source/Cekis-patch-1
Update CreatureObject.cpp
2 parents 30d3403 + 8a86bcc commit af9221a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

engine/server/library/serverGame/src/shared/object/CreatureObject.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14542,7 +14542,7 @@ bool CreatureObject::processExpertiseRequest(std::vector<std::string> const &add
1454214542
const SkillObject *skill = SkillManager::getInstance().getSkill(s);
1454314543
if(skill)
1454414544
{
14545-
int tier = ExpertiseManager::getExpertiseTier(s);
14545+
int tier = ExpertiseManager::getExpertiseTier(s); // this should be only dec/inst
1454614546
if(tier != z)
1454714547
{
1454814548
continue; //skip over this skill - we didn't match the tier level. we'll catch it next loop through.
@@ -14562,7 +14562,6 @@ bool CreatureObject::processExpertiseRequest(std::vector<std::string> const &add
1456214562
//Check if the player has enough points for a skill of this tier
1456314563
int tree = ExpertiseManager::getExpertiseTree(s);
1456414564
int pointsInTree = getExpertisePointsSpentForPlayerInTree(tree);
14565-
int tier = ExpertiseManager::getExpertiseTier(s);
1456614565
if (pointsInTree < (tier - 1) * POINTS_PER_TIER)
1456714566
{
1456814567
LOG("CustomerService", ("SuspectedCheaterChannel: %s tried to get expertise %s but only has %d points in tree %d, needs %d", PlayerObject::getAccountDescription(this).c_str(), s.c_str(), pointsInTree, tree, (tier - 1) * POINTS_PER_TIER));

0 commit comments

Comments
 (0)