- Joined
- Jul 26, 2008
- Messages
- 1,009
So I'm duplicating the Dark Conversion effect. What I want to do is simply kill the unit and create a new unit in it's place. However, the spell should work like Dark Conversion and only target Commoner.
The only problem is, how do I check to make sure the unit is a commoner? There is no UNIT_TYPE_COMMONER, and common.j doesn't list a commoner classification. I suppose I could always do an If IsUnit() against rawcodes, but if I was to do Orc it would be ungodly long.
What are some viable solutions? Sure I could use a dummy spell with Dark Conversion, but I'd like to avoid filling up the object editor.
The only problem is, how do I check to make sure the unit is a commoner? There is no UNIT_TYPE_COMMONER, and common.j doesn't list a commoner classification. I suppose I could always do an If IsUnit() against rawcodes, but if I was to do Orc it would be ungodly long.
What are some viable solutions? Sure I could use a dummy spell with Dark Conversion, but I'd like to avoid filling up the object editor.