I have a hero called the Earthfather, one of his skills will link to a friendly/allied unit and take 80% of their damage and transfer it through the link to the earthfather leaving the unit to only take the remaining 20%. Some example are the Ragnarok Crusaders Sacrifice spell or i guess you could say Spirit Link however if i make a custom ability based on Spirit Link then crank the value to 0.80 it makes both units take 80% which means they take 160% total which is just stupid.
I have tried different ways of doing this and each time it's lead to failure or half working triggers which is why i'm posting here to ask for help so i can learn from a more experience coder, if this has to be done in Jass then by all means do it in Jass, i'm trying to learn Jass aswell but atm i'm more experience in GUI.
Spell creates a link that transfers 80% of the damage to the Earthfather.
Spell lightning art can be anything but the Drain Life effect would be excellent.
Only one links should be up at any given time.
Thanks in advance to anyone that helps.
I have tried different ways of doing this and each time it's lead to failure or half working triggers which is why i'm posting here to ask for help so i can learn from a more experience coder, if this has to be done in Jass then by all means do it in Jass, i'm trying to learn Jass aswell but atm i'm more experience in GUI.
Spell creates a link that transfers 80% of the damage to the Earthfather.
Spell lightning art can be anything but the Drain Life effect would be excellent.
Only one links should be up at any given time.
Thanks in advance to anyone that helps.