mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-04 00:02:24 +00:00
[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:
parent
1e86e0c02f
commit
5275201713
@ -2423,6 +2423,8 @@ bool Client::CheckIncreaseSkill(EQ::skills::SkillType skillid, Mob *against_who,
|
|||||||
return false;
|
return false;
|
||||||
if (IsAIControlled()) // no skillups while chamred =p
|
if (IsAIControlled()) // no skillups while chamred =p
|
||||||
return false;
|
return false;
|
||||||
|
if (against_who != nullptr && against_who->IsCorpse()) // no skillups on corpses
|
||||||
|
return false;
|
||||||
if (skillid > EQ::skills::HIGHEST_SKILL)
|
if (skillid > EQ::skills::HIGHEST_SKILL)
|
||||||
return false;
|
return false;
|
||||||
int skillval = GetRawSkill(skillid);
|
int skillval = GetRawSkill(skillid);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user