MNoya / BuildingHelper

Library for RTS & TD Dota Custom Games
GNU General Public License v3.0
37 stars 14 forks source link

[Request] Disable ability when the building haven't finished #9

Closed Septica closed 8 years ago

Septica commented 8 years ago

The title says it all. Apparently you can use building abilities while the building is being built

MNoya commented 8 years ago

You can do this yourself via builder.lua callbacks, just silence/stun the building in event:OnConstructionStarted and remove it in event:OnConstructionCompleted. The reason this isn't the default behaviour is because this way it is possible to queue abilities as soon as the building starts, to resume them later when it finishes construction.