- Joined
- Feb 4, 2008
- Messages
- 3,511
Before we start, I'm using Bribe's Damage Engine and Unit Indexer.
I basically need to store what type of damage was dealt to a unit (only triggered damage is relevant). So I can apply custom resistance, special effects, ect. My current idea is basically using a dummy damage function, that stores the damage-type, but otherwise just functions like "UnitDamageTarge". Got any ideas?
An example is that I have units using "explosive barrels", and they basically need to explode on attack / spell hit, whenever fire damage is dealt to them. Since all spells is triggered, and attacks never actually deal fire damage (in my case anyhow), I just need to detect which damage type is dealt via triggers when dealing trigger damage.
I basically need to store what type of damage was dealt to a unit (only triggered damage is relevant). So I can apply custom resistance, special effects, ect. My current idea is basically using a dummy damage function, that stores the damage-type, but otherwise just functions like "UnitDamageTarge". Got any ideas?
An example is that I have units using "explosive barrels", and they basically need to explode on attack / spell hit, whenever fire damage is dealt to them. Since all spells is triggered, and attacks never actually deal fire damage (in my case anyhow), I just need to detect which damage type is dealt via triggers when dealing trigger damage.