import IMMOClientMutator from "../../../mmocore/IMMOClientMutator" ; import GameClient from "../../GameClient" ; import ChangeWaitType from "../../incoming/game/ChangeWaitType" ; import L2Character from "../../../entities/L2Character" ; export default class ChangeWaitTypeMutator extends IMMOClientMutator < GameClient , ChangeWaitType > { update ( packet ) { const creature = this . Client . CreaturesList . getEntryByObjectId ( packet . ObjectId ) ; if ( creature && creature instanceof L2Character ) { const [ _x , _y , _z ] = packet . Location ; creature . setLocation ( _x , _y , _z ) ; creature . IsSitting = packet . MoveType === 0 ; } } }