Skip to content

Commit

Permalink
fix: Исправлены методы Entity.getMobile(), Entity.health()
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXFeeD committed Mar 2, 2024
1 parent cfb5b83 commit f7a1d72
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/resources/innercore/coreengine/core-engine.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -6024,8 +6024,8 @@ var EntityAPI = {
setTarget: function(ent, target) {
return Entity.setTarget(ent, target);
},
getMobile: function(ent, mobile) {
Entity.isImmobile(ent);
getMobile: function(ent) {
return Entity.isImmobile(ent);
},
setMobile: function(ent, mobile) {
Entity.setImmobile(ent, !mobile);
Expand All @@ -6048,16 +6048,16 @@ var EntityAPI = {
health: function(entity) {
return {
get: function() {
return this.getHealth(entity);
return EntityAPI.getHealth(entity);
},
set: function(health) {
this.setHealth(entity, health);
EntityAPI.setHealth(entity, health);
},
getMax: function() {
return this.getMaxHealth(entity);
return EntityAPI.getMaxHealth(entity);
},
setMax: function(health) {
this.setMaxHealth(entity, health);
EntityAPI.setMaxHealth(entity, health);
}
};
},
Expand Down

0 comments on commit f7a1d72

Please sign in to comment.