# SystemHeal

#### kingkingyyk3

##### Visitor (Welcome to the Jungle, Baby!)
Unit 1 Heals Unit 3 for 100
Unit 2 Heals Unit 3 for 200 (at the the same time)

It is instant, it will not return wrong value.

[ljass]set StackLevel = StackLevel + 1[/ljass]
This solved the problem that you use HealUnit in heal event callbacks.

#### hgkjfhfdsj

##### Active Member
so GetAmount() should give 300?

#### kingkingyyk3

##### Visitor (Welcome to the Jungle, Baby!)
No, it will return 100(First turn of callbacks) and 200(Second turn of callbacks) instead.

#### hgkjfhfdsj

##### Active Member
ok.. so
how would you go amount retrieving the total heal amount?
ie GetAmount() gives 300 on first turn (since assuming the two heals occurs at the same time)
how to add the 2nd call (200) to the 1st call (100) amount to the same stacklevel?

#### kingkingyyk3

##### Visitor (Welcome to the Jungle, Baby!)
(since assuming the two heals occurs at the same time)
No chance to occur.

#### hgkjfhfdsj

##### Active Member
No chance to occur.
ok..one more question:
[DEL]what do you mean by recursively defined?[/DEL] but more importantly, what/how does the stacklevel thingy solve it??
ty (again)

#### kingkingyyk3

##### Visitor (Welcome to the Jungle, Baby!)
but more importantly, what/how does the stacklevel thingy solve it??
I meant it solved recursion.

#### kingkingyyk3

##### Visitor (Welcome to the Jungle, Baby!)
A little-efficiency-gain update is up!

#### kingkingyyk3

##### Visitor (Welcome to the Jungle, Baby!)
Updated to v2.0.0

#### Juggernaut

##### I don't know what to change it to
how to use this ?

#### kingkingyyk3

##### Visitor (Welcome to the Jungle, Baby!)
It is basically similar to Damage event.
The demo map should give some hints.

General chit-chat
Help Users
• No one is chatting at the moment.

### Members online

No members online now.