- Joined
- May 24, 2016
- Messages
- 339
Hello, so I'd like to reduce abil cooldown through item gain.
As I suppose, first I need to know what abil cd I want to reduce. I should detect when abil getting learned, then store it into the boolean (true means it is learnt)
Then I need to detect that item being bought (done)
And then when being bought, I check for boolean value. If false, then I just simply swap his original abil id with the new one with lower cd. If value is true, I would additionally call for hero to learn it automatically to needed level.
So I wanted you to ask, is there might be any unwanted moments I d encounter?
As I suppose, first I need to know what abil cd I want to reduce. I should detect when abil getting learned, then store it into the boolean (true means it is learnt)
Then I need to detect that item being bought (done)
And then when being bought, I check for boolean value. If false, then I just simply swap his original abil id with the new one with lower cd. If value is true, I would additionally call for hero to learn it automatically to needed level.
So I wanted you to ask, is there might be any unwanted moments I d encounter?