diepcustom
diepcustom copied to clipboard
Auto Turrets with a GuardObject Do Not Gain Score from Destroying Objects (e.g. Auto 3, Auto 5)
A possible workaround is to modify the onKill method of class AutoTurrent in AutoTurrent.ts:
public onKill(killedEntity: LivingEntity) {
if (!(this.owner instanceof LivingEntity) && !(this.owner instanceof GuardObject)) return;
this.owner.onKill(killedEntity); // GuardObjet.onKill -> TankBody.onKill -> add score
}
The reason for this change is that the GuardObject, serving as the rotation base, is not a LivingEntity.
Nice catch, feel free to make a PR :)