You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
312 B

  1. module.exports = async (cpnSocial, targetZone) => {
  2. const { obj } = cpnSocial;
  3. obj.fireEvent('beforeRezone');
  4. obj.destroyed = true;
  5. const simpleObj = obj.getSimple(true, false, true);
  6. process.send({
  7. method: 'rezone',
  8. id: obj.serverId,
  9. args: {
  10. obj: simpleObj,
  11. newZone: targetZone
  12. }
  13. });
  14. };