mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
fix #2142 - show boss damage as Math.abs()
This commit is contained in:
parent
fa2fddb516
commit
c5ca9cf41b
1 changed files with 1 additions and 1 deletions
|
|
@ -194,7 +194,7 @@ GroupSchema.statics.bossQuest = function(user, progress, cb) {
|
|||
var down = progress.down * quest.boss.str; // multiply by boss strength
|
||||
|
||||
group.quest.progress.hp -= progress.up;
|
||||
group.sendChat("`<" + user.profile.name + "> attacks <" + quest.boss.name + "> for " + (progress.up.toFixed(1)) + " damage, <" + quest.boss.name + "> attacks party for " + (down.toFixed(1)) + " damage.`");
|
||||
group.sendChat("`<" + user.profile.name + "> attacks <" + quest.boss.name + "> for " + (progress.up.toFixed(1)) + " damage, <" + quest.boss.name + "> attacks party for " + Math.abs(down).toFixed(1) + " damage.`");
|
||||
|
||||
// Everyone takes damage
|
||||
var series = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue