summaryrefslogtreecommitdiff
path: root/scripts/entities/actors/Actor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/entities/actors/Actor.cs')
-rw-r--r--scripts/entities/actors/Actor.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/entities/actors/Actor.cs b/scripts/entities/actors/Actor.cs
index 1717cfa..1cb1f37 100644
--- a/scripts/entities/actors/Actor.cs
+++ b/scripts/entities/actors/Actor.cs
@@ -139,7 +139,7 @@ public partial class Actor : Entity
public int Heal(int amount) {
int neoHp = Hp + amount;
- if (amount > MaxHp) neoHp = MaxHp;
+ if (neoHp > MaxHp) neoHp = MaxHp;
int recovered = neoHp - Hp;
Hp = neoHp;