if (args.opposedTest.result.winner == "attacker") { if (args.opposedTest.defenderTest.weapon && args.opposedTest.defenderTest.item.properties.qualities.shield) { ui.notifications.notify(`${this.effect.name}: Gained ${this.item.Advances} Advantage`) this.actor.setAdvantage(this.item.Advances) } }