[Bug Fix] Fix for being able to skill up on corspe. (#2058)

* [Bug Fix] Fix for being able to skill up on corspe.

* Fix whitespace
This commit is contained in:
Paul Coene 2022-03-19 14:21:54 -04:00 committed by GitHub
parent 1e86e0c02f
commit 5275201713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2423,6 +2423,8 @@ bool Client::CheckIncreaseSkill(EQ::skills::SkillType skillid, Mob *against_who,
return false;
if (IsAIControlled()) // no skillups while chamred =p
return false;
if (against_who != nullptr && against_who->IsCorpse()) // no skillups on corpses
return false;
if (skillid > EQ::skills::HIGHEST_SKILL)
return false;
int skillval = GetRawSkill(skillid);