This map contains an ability an trigger to add max hp.
I know that bug! That is not what I need. I need to create a "Blessed Body" buff... It must give a temporary life bonus to a hero and remove it when 20 minutes pass or hero dies...
It is what you can use. Add max hp, start a timer. When the timer expires, you remove max hp by the same amount you added. To remove max hp, you modify the health ability to give a positive amount.
Siphon mana(life drain) allows the caster to have more than maximum mana and health.
won't the number of abilities leak at one nasty moment?
one more: how would you solve this problem: unit rises the level of ability and buffs it over previous (lower level "Blessed Body") and hp bonus stays?
but when it goes down, noone can heal him for that amount of HP...
Have you played Lineage 2?
http://lineage2server.org/skill-Blessed-Body-1045
I'd like to make such a spell, but I feel that there'll be too much bugs with it((( But I can't not to make it...
call UnitAddStat(unit,MAXHEALTH,300)
Well, as people have pointed out you should use a bonusmod.
Basically with a bonusmod you can do something like:
Then if necessary you can lower the current health back to what it was before adding this(when a stat bonus is applied to mana or health, then the percentual amount remains the same. Thus, actual health increases)JASS:call UnitAddStat(unit,MAXHEALTH,300)
How to use "bonusmod" and where can I get it?