let test = this.actor.attacker?.test if (test && this.item.system.protects[test.result.hitloc.result] && test.result.critical) { this.script.message(`${this.item.name}: Blocked Critical Hit`) }