l-hate_you
New Member
- Reaction score
- 6
I have created a shop based off of a Goblin Merchant with the abilities Invulnerable, Shop Purchase Item, and Select Unit. In the Targets Allowed field for both Shop Purchase Item and Select Unit, I made it only Non-Hero. However, both Heroes and Non-Hero units can still buy items from this Shop. Is it possible to make a Shop that only sells items to Non-Hero units?
Thanks in advance
Edit: Well I made a trigger so if they buy items there as a hero it removes it and tells them they cant but I would like to know how I can refund them their gold for the item (without making 100 If/Then/Else Funcs)? Is there a "GetItemGoldValue" in JASS or something like that? That would be helpful (since theres no "Point Value" to items )
Thanks in advance
Edit: Well I made a trigger so if they buy items there as a hero it removes it and tells them they cant but I would like to know how I can refund them their gold for the item (without making 100 If/Then/Else Funcs)? Is there a "GetItemGoldValue" in JASS or something like that? That would be helpful (since theres no "Point Value" to items )