- Joined
- Oct 23, 2011
- Messages
- 182
I've been trying to put special abilties into items (mainly passives)
What would be efficient way to do it?
Checking if a unit has the item every time it gets damaged/healed/etc. looks pretty bad
I was going to try to use Nestharus' Event.. but I realized it has no unregister(the special ability should be gone once the item is dropped)
Maybe I have to create a linked list of events ?
Tips would be greatly appreciated =)
What would be efficient way to do it?
Checking if a unit has the item every time it gets damaged/healed/etc. looks pretty bad
I was going to try to use Nestharus' Event.. but I realized it has no unregister(the special ability should be gone once the item is dropped)
Maybe I have to create a linked list of events ?
Tips would be greatly appreciated =)