- Joined
- Jul 10, 2007
- Messages
- 6,306
1. When I have 2 abilities based on frost breath and the orb of frost ability (the one that goes on to the orb, not the orb itself) and 2 other abilities based on the previous 2, both sets having different buffs-
frost breath 1
orb of frost 1
---> buff 1
frost breath 2
orb of frost 2
---> buff 2
And all four are on a unit, one of the buffs gets overwritten by the other-
attack unit w/ buff 1 and buff 2 and all 4 abilities
unit ends up only having buff 2 on it
So the first question is does anyone know of a way to get both buffs on the attacked unit using those abilities?
The second question has to do with damage source... when a unit attacks another unit, an attack is created (could be a projectile or w/e). When the unit is removed, the attack of course stays but no longer has a source as the unit no longer exists.
My first question is first, should attacks like that be ignored as if they don't exist? (all damage gets stopped)
Not sure how to determine which attack hit the unit w/o the source unit being up...
Every unit can have 64 attacks up at a given time. This means that when an attack hits a unit, it has an id between 1 and 64. If the source was null, then it is known that the unit was deindexed and is in a list of deindexed units w/ attacks up. From there, you can figure out which of those units had an attack up matching the id that hit the unit. After that, you can figure out where the attack was fired from and where the unit currently is and all of this other mumbo jumbo that I don't want to do.
Anyways... this would only occur with corpses with low decay times or when units are removed that had attacks up.
Furthermore, there is yet another problem... w/ no source unit, who gets the bounty? : P
A dummy unit could be used to kill the unit if the unit was going to die, giving the right player the bounty, but anyways...
What are everyone else's thoughts?
frost breath 1
orb of frost 1
---> buff 1
frost breath 2
orb of frost 2
---> buff 2
And all four are on a unit, one of the buffs gets overwritten by the other-
attack unit w/ buff 1 and buff 2 and all 4 abilities
unit ends up only having buff 2 on it
So the first question is does anyone know of a way to get both buffs on the attacked unit using those abilities?
The second question has to do with damage source... when a unit attacks another unit, an attack is created (could be a projectile or w/e). When the unit is removed, the attack of course stays but no longer has a source as the unit no longer exists.
My first question is first, should attacks like that be ignored as if they don't exist? (all damage gets stopped)
Not sure how to determine which attack hit the unit w/o the source unit being up...
Every unit can have 64 attacks up at a given time. This means that when an attack hits a unit, it has an id between 1 and 64. If the source was null, then it is known that the unit was deindexed and is in a list of deindexed units w/ attacks up. From there, you can figure out which of those units had an attack up matching the id that hit the unit. After that, you can figure out where the attack was fired from and where the unit currently is and all of this other mumbo jumbo that I don't want to do.
Anyways... this would only occur with corpses with low decay times or when units are removed that had attacks up.
Furthermore, there is yet another problem... w/ no source unit, who gets the bounty? : P
A dummy unit could be used to kill the unit if the unit was going to die, giving the right player the bounty, but anyways...
What are everyone else's thoughts?