Skip to content

Commit

Permalink
Melt Armor
Browse files Browse the repository at this point in the history
  • Loading branch information
turinpt committed Jun 18, 2024
1 parent 8b5527c commit 6b41168
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
3 changes: 1 addition & 2 deletions gear/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,7 @@
{i:220738,s:"EchoesDread"},
{i:220747,s:"EchoesDread"},
{i:220743,s:"EchoesDread"},


{i:227683,s:"MeltArmor"},
];

var customPPM = [
Expand Down
5 changes: 4 additions & 1 deletion js/classes/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ class Player {
}
updateBonusDmg() {
let bonus = 0;
let taken = 0;
if (this.auras.stoneslayer && this.auras.stoneslayer.timer)
bonus += this.auras.stoneslayer.stats.moddmgdone;
if (this.auras.zeal && this.auras.zeal.timer)
Expand All @@ -817,8 +818,10 @@ class Player {
bonus += this.auras.relentlessstrength.stats.moddmgdone;
if (this.auras.blisteringragehammer && this.auras.blisteringragehammer.timer)
bonus += this.auras.blisteringragehammer.stats.moddmgdone;
if (this.auras.meltarmor && this.auras.meltarmor.timer)
taken += this.auras.meltarmor.stats.moddmgtaken;
this.stats.moddmgdone = this.base.moddmgdone + bonus;
this.stats.moddmgtaken = this.base.moddmgtaken;
this.stats.moddmgtaken = this.base.moddmgtaken + taken;
this.mh.bonusdmg = this.mh.basebonusdmg;
if (this.oh)
this.oh.bonusdmg = this.oh.basebonusdmg;
Expand Down
23 changes: 23 additions & 0 deletions js/classes/spell.js
Original file line number Diff line number Diff line change
Expand Up @@ -2414,4 +2414,27 @@ class DefendersResolve extends Aura {
/* start-log */ if (log) this.player.log(`${this.name} removed`); /* end-log */
}
}
}

class MeltArmor extends Aura {
constructor(player, id) {
super(player, id, 'Melt Armor');
this.duration = 10;
this.stats.moddmgtaken = 10;
}
use() {
if (this.timer) this.uptime += (step - this.starttimer);
this.timer = step + this.duration * 1000;
this.starttimer = step;
this.player.updateBonusDmg();
/* start-log */ if (log) this.player.log(`${this.name} applied`); /* end-log */
}
step() {
if (step >= this.timer) {
this.uptime += (this.timer - this.starttimer);
this.timer = 0;
this.player.updateBonusDmg();
/* start-log */ if (log) this.player.log(`${this.name} removed`); /* end-log */
}
}
}
1 change: 1 addition & 0 deletions js/data/gear_sod.js
Original file line number Diff line number Diff line change
Expand Up @@ -74795,6 +74795,7 @@ var gear = {
"tick": 15,
"interval": "2000",
"duration": "10000",
"spell": "MeltArmor",
"ppm": 0.7
}
},
Expand Down

0 comments on commit 6b41168

Please sign in to comment.