1
0
forked from noxious/server
This commit is contained in:
2025-02-12 00:50:51 +01:00
parent c47339dfcd
commit e40a56825a
121 changed files with 468 additions and 3305 deletions

View File

@ -12,7 +12,7 @@ export default class CharacterMove extends BaseEvent {
private async handleEvent(data: any, callback: (response: any) => void): Promise<void> {
try {
console.log('attack', this.socket.characterId)
await this.characterAttackService.attack(this.socket.characterId!)
await this.characterAttackService.attack(this.socket.characterId)
} catch (error) {
this.logger.error('map:character:attack error', error)
return callback(false)