I need help with a spell that I'm making called Heart of Ice. It should be based on Avatar because it has some similar effects:
Heart of Ice: When Heart of Ice is activated, the hero recieves 15 bonus armor and spell immunity (From Avatar). Any melee unit that attacks the hero will have its movement and attack speed reduced (Like Frost Armor). If the hero dies while under the effect of heart of ice, it will come back to life (Reincarnation Style).
It would be great if someone could do this in Jass because it should be multiinstancible.
Umm... Would you like it for more than one unit/player? Because if you don't, I can do it with triggers! This would mean that every player can cast it at the same time, but the same player cannot cast the spell with more than one unit at the same time.
Ok... I will try to do it ASAP! I may finish it tomorrow since now I am a little busy but I will do it. Oh, if you can do it yourself I can give you a piece of advice how to make it multi instance. Make sure all variables are arrays with 16 positions and set the value to stuff like "Player Number of (Owner of (Casting Unit)) or Player Number of (Triggering Player)". That should work in most of the cases! You can also check some of my spells. Armageddon is a bad example because it takes too much to implement but I'm trying to improve it.
Can't get the reincarnation part to work. I tried doing Event-If Unit dies Condition-Unit has specific Buff Heart of Ice Actions:- Revive hero instantly, hide lvl up - Add ability Reincarnation to unit - Kill Unit.
Appearently the buff is removed from the unit when it dies, so none of the actions take place. The frost armor is all set, and so is the Avatar part, i just need the reincarnation.
Event - An unit is attacked Conditions - Unit has buff (your buff) equal to trur Actions - Wait 0.50 seconds. - If (Attacked Unit) is dead equal to true then Hero Then - Revive unit instantly at position of dying unit. Else - Do nothing
Umm... You can add the unit to a game cache and remove it from the game. Then you can just wait some more seconds and THEN revive the unit by restoring it from the game cache. Explore the game cache to functions to find out more about them.