fix 经验书不满5级时直接消耗不报错
This commit is contained in:
@@ -123,7 +123,8 @@ export class HeroHandler {
|
|||||||
newExp += dicGoods.value * count;
|
newExp += dicGoods.value * count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(newExp < needExp) {
|
|
||||||
|
if (newExp == oldExp) {
|
||||||
return resResult(STATUS.ROLE_EXP_NOT_ENOUGH);
|
return resResult(STATUS.ROLE_EXP_NOT_ENOUGH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user