2 passive spells

Status
Not open for further replies.

Brunis

B

Brunis

All greetings
To Whom it is not difficult, help me with passive spells pleas
1]The Priest has 20-25-30 [percents] chance when attacked that he will be invuririble for 3 seconds
2]Hero has a passive skill....when hero and allied units attacking enemies they have 15-21-27 [percents] chance that they will be healed for 30-50-70hp.
If it is not difficult, write please at once a code [GUI]
-Big thx
 
1. Make a trigger trigger when a unit is attacked.
The condition of the trigger is, if the attacked unit is of type "insert priest".
Then do a random int function and a comparision for your % and then if it hits that number, make unit invoundrable then wait 3 seconds then remove invoundrability.

That simple.

2. Sounds wierd and needs jass.
 
Status
Not open for further replies.
Back
Top