File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,10 +9,20 @@ if {@sender -> team} is "SCPs"
99end
1010
1111# get a random SCP that is not a SCP-079
12- @randomScp = Take {Except @scpPlayers @scp079Players} 1
12+ @target = Take {Except @scpPlayers @scp079Players} 1
13+
14+ # check if the was no viable target
15+ if {AmountOf @target} is 0
16+ Reply "There is no SCP to heal"
17+ stop
18+ end
1319
1420# get 5% of the SCP's max health
15- $healAmount = Round ({@randomScp -> maxHealth} * 0.05)
21+ $healAmount = Round ({@target -> maxHealth} * 0.05)
22+
23+ # heal
24+ Heal @target $healAmount
1625
17- Heal @randomScp $healAmount
18- Broadcast @randomScp 4s "{@sender -> name} healed you with {$healAmount} HP!"
26+ # inform
27+ Broadcast @target 4s "{@sender -> name} healed you with {$healAmount} HP!"
28+ Reply "You have healed {@target -> name} by {$healAmount} HP!"
You can’t perform that action at this time.
0 commit comments