| 02-07-2010, 10:07 AM | #1 |
Just a question, which is faster when detecting damage from auto-cast arrow abilities (cold arrows, poison arrows etc.): damage detection or buff placement? The hardest spell for me is to create a triggered auto-cast arrow ability, because it requires damage detection, I'm just planning to achieve this effect by using a damage detect system, like all I need to do is detect if the damaged unit has the buff then do the effect and remove buff to avoid conflicts with other damage. for now I am using DamageEvent and DamageModifiers by Anitarf, I just want to know if the buff is already applied when damage detect takes place (in DamageModifier struct not DamageEvent) or damage detect is first triggered before buff is actually applied? |
| 02-07-2010, 10:14 AM | #2 |
I would assume it's similar to Dusk's Damage Detection system, so when the unit takes damage from the auto-casted attack, they will have the buff. |
| 02-07-2010, 12:00 PM | #3 |
I've recently coded an autocast spell. You need to detect 2 events: first, the spell cast manually, and secondly the autocast attack. First one is no brainer, as for the second, I've used the poison arrows ability, with a 0.01 duration and 0 damage. I used Dusk's IDDS to detect the damage, check if the attacked unit has the buff, and then do stuff the ability should. Works like a charm. |
| 02-07-2010, 08:28 PM | #4 |
Why are you using cast and attack events? All you need is a Damage Event and then check for the buff. |
| 02-07-2010, 09:34 PM | #5 |
Indeed... Ain't that some stupid stuff. Thanks man. |
