This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
let halve;
|
||||
if (args.opposedTest.attackerTest.item?.type != "spell")
|
||||
if (args.sourceItem?.type != "spell")
|
||||
{
|
||||
halve = await foundry.applications.api.DialogV2.confirm({window : {title : this.effect.name}, content : "Divisé les dégats par deux? (Divise les dégats de tout feu par deux)"})
|
||||
}
|
||||
else
|
||||
{
|
||||
halve = args.opposedTest.attackerTest.item?.system.lore?.value == "fire";
|
||||
halve = args.sourceItem?.system.lore?.value == "fire";
|
||||
}
|
||||
|
||||
if (halve)
|
||||
|
||||
Reference in New Issue
Block a user