I copy/pasted it from the Blizzard Forums but it seems nobody could help me there so I give it a try here.
Hey guys,
since a few months ago I have to face a very nasty bug and until now I desperately tried to fix it but nothing helped.
Warning: The explanation uses some terms of my map so I explain them before hand.
Stats: An upgradable improvement of certain hero aspects (like Health, Energy)
Bonus Feat: After the player have chosen the third stat the hero receives a Bonus Feat which will give the hero additional power (like additional splash damage, passive spells, etc.). The stats can affect those Bonus Feats and further increase their power.
Recreation:
I haven't tried to recreate it on another map so the bug can be experienced in my map "Project Factions ORPG Open Beta" at NA and EU (no ad intented). To recreate it select any hero and choose a bonus feat in the stats that adds Life Drain to your automatic attack (like http://project-factions.wikia.com/wiki/Bloodrush). Then you need some other buffs dependent on your hero. After a few activations you will damage yourself on each auto-attack. (This is the bug)
Edit: I tryed to recreate it on another map but failed at it.
Investigation:
As far as I can tell the investigation shows it seems that the Behaviours with Life Drain create an [b]invisible negative copy[/b] of the life drain somehow which doesn't expire and stacks infinitely.
When I change the base life drain of that buff to a negative value the initial life drain is negative (it damages me) but when I survive for the duration of the behaviour and the negative life drain buff expires I receive life drain out of nowhere and for no reason. At this moment I was confident that somehow a negative invisible copy was created somehow.
What happens:
Here I will list everything that could lead to an answer of this bug because I'm tired of it and I want to fix it as soon as possible.
First off, the bug only appears when a life drain buff expires. Permanent life drain buffs won't cause the bug to appear.
Secondly, the buff is applied through a normal attack and is applied to the Caster (Attacker in this case).
Thirdly, the general method how I've written it:
Aside the EXP veterancy behaviour each hero has at least 4 invisible buffs on them. The first inherits the special abilities of the respective hero while the other 3 are bonus feat behaviours which trigger on certain occasions (Every x second or damage response) and are linked to several Set Effects.
The same goes for the weapon. Each weapon of each hero starts with a switch which checks for certain "Next Attack" buffs which will convert the damage into splash damage. If non is found the usual attack is started which more Set Effects which will check for more "On Attack" Bonus Feats. Like this method the previous mentioned buff "Bloodrush" is also triggered (which is one of the bug offenders because it adds life drain).
Possible Reasons:
At first I thought I have done something wrong but even after the xth check I couldn't find anything. Thus I can only assume the following statement:
Whenever a temporary buff expires a negative copy is created for some reason by Starcraft to deavtivate it or something.
And for some reason the bug only appears when the unit has a certain amount of buffs active on him (it seems to be like 5-7 or so). Usually the heroes have 5 permanent buffs on them (all invisble) and some temporary dependent on hero choice and bonus feats.
In one test I removed some of the invisble behaviours which aren't requiring for testing and the bugs needed more time to make a difference. Thus I can only assume that the bug is somehow linked to the number of behaviours on a hero.
Just to clarify it: I've checked every trigger and data aspect which do or don't interact with those behaviours and couldn't find anything.
tl;dr / Conclusion of Investigation:
A bug appears when temporary behaviours grant life drain to a unit/hero. The bugs appears in form of negative life drain (the unit is damaged every time it attacks) even when the life drain behavious is not active.
For some reason the bug only appears when the unit has a certain amount of buffs active.
When the life drain value is changed to zero no bug appears.
When the base life drain value is changed to a negative value for the first few attacks the unit is damaged properly. But after a few activations of the life drain buff the negative value is changed to a positive value.
When the original buff reappears the positive and the negative values negate each other and no life is drained. But the bug is able to stack infinitely and thus will result in suicide.
Checks on the catalogue value reflect that no change was made to the buff.
I hope someone can help me with this incredible annoying issue.
Actually units can have more than 5 on but the standard UI just does not show them. Get the buff to add a +1 to a vital the unit lacks like shield or energy to test for buff stacking.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Actually I know that units can have more than 5 behaviours. For some instances my heroes have more than 10 behaviours but that isn't the problem.
I've tried to add +1 Shield and -1 Shield to see what happens in terms of negative copying.
All Vital Values work properly even when the bugs appears. Thus I can only say that he negative copy only affects the lifesteal value.
Right after this I tested the bug with energy steal and yes. As soon as the bug appears and the lifesteal value turns negative the hero also looses energy on each hit.
After that I modified some other values like Attack Speed and it seems that only the steal values are affected from this bug. Which would conclude that somehow negative damage is being dealt to the target. However all minimum damage values are set to 0. And even the damage response trigger say that there is no negative damage or even and suspicious source of damage.
I copy/pasted it from the Blizzard Forums but it seems nobody could help me there so I give it a try here.
Hey guys,
since a few months ago I have to face a very nasty bug and until now I desperately tried to fix it but nothing helped.
Warning: The explanation uses some terms of my map so I explain them before hand. Stats: An upgradable improvement of certain hero aspects (like Health, Energy) Bonus Feat: After the player have chosen the third stat the hero receives a Bonus Feat which will give the hero additional power (like additional splash damage, passive spells, etc.). The stats can affect those Bonus Feats and further increase their power.
Recreation: I haven't tried to recreate it on another map so the bug can be experienced in my map "Project Factions ORPG Open Beta" at NA and EU (no ad intented). To recreate it select any hero and choose a bonus feat in the stats that adds Life Drain to your automatic attack (like http://project-factions.wikia.com/wiki/Bloodrush). Then you need some other buffs dependent on your hero. After a few activations you will damage yourself on each auto-attack. (This is the bug) Edit: I tryed to recreate it on another map but failed at it.
Investigation: As far as I can tell the investigation shows it seems that the Behaviours with Life Drain create an [b]invisible negative copy[/b] of the life drain somehow which doesn't expire and stacks infinitely. When I change the base life drain of that buff to a negative value the initial life drain is negative (it damages me) but when I survive for the duration of the behaviour and the negative life drain buff expires I receive life drain out of nowhere and for no reason. At this moment I was confident that somehow a negative invisible copy was created somehow.
What happens: Here I will list everything that could lead to an answer of this bug because I'm tired of it and I want to fix it as soon as possible. First off, the bug only appears when a life drain buff expires. Permanent life drain buffs won't cause the bug to appear. Secondly, the buff is applied through a normal attack and is applied to the Caster (Attacker in this case). Thirdly, the general method how I've written it: Aside the EXP veterancy behaviour each hero has at least 4 invisible buffs on them. The first inherits the special abilities of the respective hero while the other 3 are bonus feat behaviours which trigger on certain occasions (Every x second or damage response) and are linked to several Set Effects. The same goes for the weapon. Each weapon of each hero starts with a switch which checks for certain "Next Attack" buffs which will convert the damage into splash damage. If non is found the usual attack is started which more Set Effects which will check for more "On Attack" Bonus Feats. Like this method the previous mentioned buff "Bloodrush" is also triggered (which is one of the bug offenders because it adds life drain).
Possible Reasons: At first I thought I have done something wrong but even after the xth check I couldn't find anything. Thus I can only assume the following statement:
Whenever a temporary buff expires a negative copy is created for some reason by Starcraft to deavtivate it or something. And for some reason the bug only appears when the unit has a certain amount of buffs active on him (it seems to be like 5-7 or so). Usually the heroes have 5 permanent buffs on them (all invisble) and some temporary dependent on hero choice and bonus feats.
In one test I removed some of the invisble behaviours which aren't requiring for testing and the bugs needed more time to make a difference. Thus I can only assume that the bug is somehow linked to the number of behaviours on a hero. Just to clarify it: I've checked every trigger and data aspect which do or don't interact with those behaviours and couldn't find anything.
tl;dr / Conclusion of Investigation:
I hope someone can help me with this incredible annoying issue.
Zanryu
Actually units can have more than 5 on but the standard UI just does not show them. Get the buff to add a +1 to a vital the unit lacks like shield or energy to test for buff stacking.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Actually I know that units can have more than 5 behaviours. For some instances my heroes have more than 10 behaviours but that isn't the problem.
I've tried to add +1 Shield and -1 Shield to see what happens in terms of negative copying. All Vital Values work properly even when the bugs appears. Thus I can only say that he negative copy only affects the lifesteal value.
Right after this I tested the bug with energy steal and yes. As soon as the bug appears and the lifesteal value turns negative the hero also looses energy on each hit.
After that I modified some other values like Attack Speed and it seems that only the steal values are affected from this bug. Which would conclude that somehow negative damage is being dealt to the target. However all minimum damage values are set to 0. And even the damage response trigger say that there is no negative damage or even and suspicious source of damage.