- Joined
- Feb 2, 2006
- Messages
- 1,592
Hey,
I want to share a unit which sells items and therefore I want to remove the trading abilities during the share. Afterwards the unit should sell items again:
does not prevent the unit from selling items. How do I remove the selling ability? Do I have to remove all item types manually from the stock?
The "select hero" abilitiy is always present as well as the sold items.
I want to share a unit which sells items and therefore I want to remove the trading abilities during the share. Afterwards the unit should sell items again:
JASS:
call UnitRemoveAbility(this.m_unit, 'Aneu')
call UnitRemoveAbility(this.m_unit, 'Asid')
call UnitRemoveAbility(this.m_unit, 'Apit')
call SetItemTypeSlots(this.m_unit, 0)
The "select hero" abilitiy is always present as well as the sold items.