mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-15 05:13:14 -04:00
Fixed potential exploit with respecing
This commit is contained in:
@@ -323,8 +323,12 @@ public class SkillService implements INetworkDispatch {
|
||||
|
||||
SetProfessionTemplate profTemplate = new SetProfessionTemplate();
|
||||
profTemplate.deserialize(buffer);
|
||||
CreatureObject creature = (CreatureObject) core.objectService.getObject(profTemplate.getCharacterId());
|
||||
|
||||
core.playerService.respec((CreatureObject) core.objectService.getObject(profTemplate.getCharacterId()), profTemplate.getProfession());
|
||||
if (!creature.getClient().getSession().equals(session))
|
||||
return;
|
||||
|
||||
core.playerService.respec(creature, profTemplate.getProfession());
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user