import IMMOClientMutator from "../../../mmocore/IMMOClientMutator" ; import GameClient from "../../GameClient" ; import MyTargetSelected from "../../incoming/game/MyTargetSelected" ; export default class MyTargetSelectedMutator extends IMMOClientMutator < GameClient , MyTargetSelected > { update ( packet ) { const npc = this . Client . CreaturesList . getEntryByObjectId ( packet . CreatureObjId ) ; if ( npc ) { this . Client . ActiveChar . Target = npc ; } this . fire ( "MyTargetSelected" , { objectId : packet . CreatureObjId , } ) ; } }