Can Heal
Description
Matches a player whose natural health regeneration the SetHealing mechanic has not blocked with value=false.
This condition only works on players. Without an entity it is false.
While regeneration is blocked, every health regain is cancelled. The block ends with a sethealing{value=true} cast, when the player quits, when the bundled MS_TemperatureRecovery skill runs at a body temperature of 34 degrees or below, and in Creative or Spectator mode or a world without temperature.
Attributes
This condition has no attributes
Examples
HeatNoHealing:
Cooldown: 3
Conditions:
- playertemp{min=35} true
- canheal true
Skills:
- sethealing{value=false} @Self
Blocks regeneration at 35 degrees or more.
CooledDownRestore:
Conditions:
- playertemp{max=30} true
- canheal false
Skills:
- sethealing{value=true} @Self
Here
canheal falsepasses while regeneration is blocked.
HealingNotice:
Skills:
- message{m="Your wounds cannot heal right now."} @Self ?!canheal
?!also runs the line when the caster is not a player.