command setskill range allow 0

This commit is contained in:
Yunfan Li
2023-05-29 19:00:11 +08:00
parent 9d3d2c84fe
commit 0e7289304d
+1 -1
View File
@@ -1871,7 +1871,7 @@ public:
// the max level of the new profession. // the max level of the new profession.
uint16 max = maxPureSkill ? *maxPureSkill : targetHasSkill ? target->GetPureMaxSkillValue(skillID) : uint16(level); uint16 max = maxPureSkill ? *maxPureSkill : targetHasSkill ? target->GetPureMaxSkillValue(skillID) : uint16(level);
if (level <= 0 || level > max || max <= 0) if (level < 0 || level > max || max < 0)
{ {
return false; return false;
} }