Skip to content

Commit

Permalink
[#5044] Fix magicalArmor bonus applying twice in v12.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyorl committed Jan 22, 2025
1 parent 1bf17dd commit ef66d4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion module/data/item/equipment.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class EquipmentData extends ItemDataModel.mixin(
/** @inheritDoc */
prepareBaseData() {
super.prepareBaseData();
if ( this.armor.base === undefined ) this.armor.base = this.armor.value ??= 0;
this.armor.base = this.armor.value = (this._source.armor.value ?? 0);
}

/* -------------------------------------------- */
Expand Down
4 changes: 2 additions & 2 deletions system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"id": "dnd5e",
"title": "Dungeons & Dragons Fifth Edition",
"description": "A system for playing the fifth edition of the world's most popular role-playing game in the Foundry Virtual Tabletop environment.",
"version": "4.2.1",
"version": "4.2.2",
"compatibility": {
"minimum": "12.331",
"verified": "13.335"
},
"url": "https://github.com/foundryvtt/dnd5e/",
"manifest": "https://raw.githubusercontent.com/foundryvtt/dnd5e/master/system.json",
"download": "https://github.com/foundryvtt/dnd5e/releases/download/release-4.2.1/dnd5e-release-4.2.1.zip",
"download": "https://github.com/foundryvtt/dnd5e/releases/download/release-4.2.2/dnd5e-release-4.2.2.zip",
"authors": [
{
"name": "Atropos",
Expand Down

0 comments on commit ef66d4e

Please sign in to comment.