forked from MagicBane/Server
Merge remote-tracking branch 'origin/refinement-fix' into post-wipe-merge
This commit is contained in:
@@ -168,6 +168,7 @@ public class RefineMsg extends ClientNetMsg {
|
||||
RefinerScreenMsg refinerScreenMsg = new RefinerScreenMsg(skillPower, npc.getSellPercent(pc)); //TODO set npc cost
|
||||
dispatch = Dispatch.borrow(pc, refinerScreenMsg);
|
||||
DispatchMessage.dispatchMsgDispatch(dispatch, engine.Enum.DispatchChannel.SECONDARY);
|
||||
pc.recalculate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ public class TrainMsg extends ClientNetMsg {
|
||||
}
|
||||
|
||||
public static void train(TrainMsg msg, ClientConnection origin) throws MsgSendException {
|
||||
|
||||
origin.getPlayerCharacter().recalculate();
|
||||
PlayerCharacter playerCharacter = SessionManager.getPlayerCharacter(origin);
|
||||
Dispatch dispatch;
|
||||
|
||||
|
||||
@@ -1302,7 +1302,6 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
this.calculateSkills();
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean refineSpi() {
|
||||
boolean worked = false;
|
||||
short newSpi = (short) 0;
|
||||
@@ -1357,6 +1356,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user