购买挑战次数bug
parent
495c238a9e
commit
e175d7db38
|
|
@ -18,6 +18,6 @@ public class MapBuyFightCountRequestHandler extends BaseHandler {
|
|||
public void process(ISession iSession, PacketNetData netData) throws Exception {
|
||||
byte[] message = netData.parseClientProtoNetData();
|
||||
MapInfoProto.MapBuyFightCountRequest mapBuyFightCountRequest = MapInfoProto.MapBuyFightCountRequest.parseFrom(message);
|
||||
MapLogic.getInstance().buyFightCount(iSession, mapBuyFightCountRequest.getBuyCount(), MessageTypeProto.MessageType.MAP_SWEEP_RESPONSE);
|
||||
MapLogic.getInstance().buyFightCount(iSession, mapBuyFightCountRequest.getBuyCount(), MessageTypeProto.MessageType.MAP_BUY_FIGHT_COUNT_RESPONSE);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1439,7 +1439,7 @@ public class MapLogic {
|
|||
}
|
||||
int needGem = 0;
|
||||
SChallengeSetting sChallengeSetting = SChallengeSetting.challengeSetting;
|
||||
for (int i = 1; i < buyCount; i++) {
|
||||
for (int i = 0; i < buyCount; i++) {
|
||||
mapManager.setBuyFightCount(mapManager.getBuyFightCount() + 1);
|
||||
needGem += MathUtils.calABX(mapManager.getBuyFightCount(), sChallengeSetting.getCost());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue