Skip to content

Commit

Permalink
Blue hearth calculation fixed #92
Browse files Browse the repository at this point in the history
  • Loading branch information
niqore committed Jul 11, 2020
1 parent 28c0aaa commit 809d6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/models/Entities.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ module.exports = (Sequelize, DataTypes) => {
* @return {Number}
*/
Entities.prototype.getCumulativeHealth = function(player) {
return this.health + (player.level * 10);
return this.maxHealth + (player.level * 10);
};

/**
Expand Down

0 comments on commit 809d6aa

Please sign in to comment.