Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BuildingHelper:UpgradeBuilding #22

Open
SirWayN3 opened this issue Apr 24, 2019 · 1 comment
Open

BuildingHelper:UpgradeBuilding #22

SirWayN3 opened this issue Apr 24, 2019 · 1 comment

Comments

@SirWayN3
Copy link

SirWayN3 commented Apr 24, 2019

I just found an error and some suggestions regarding this function.

Error:
function BuildingHelper:BlockPSO(size, location) -- if size == 0 then return end -- size can be nil, when no KV "PathingSize" has been set if size == 0 or size == nil then return end

Suggestions:

  1. Add Upgrade Duration to the Function
  2. Add Modifier Copy & Paste from the old Building to the new.
  3. Make new Building selected by Default
  4. Remove Building Invulnerable from newly spawned Building
@SirWayN3
Copy link
Author

SirWayN3 commented Apr 24, 2019

To 3:
directly after
local new_building = BuildingHelper:PlaceBuilding(
-- Remove invulnerability on npc_dota_building baseclass new_building:RemoveModifierByName("modifier_invulnerable")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant