• 0.954011065006916

    posted a message on Unit ability to temporarily copy ability of another unit

    Yeah I found that the problem with UnitAbilityAdd not working for certain abilities has to do with <AbilSetId value=""/> being set in about 50% of cases. In those cases removing that line fixes the problem. In the rest of cases, copying the ability and then removing that line from the copied ability can work, along with DataCollection fixes the problem.

     

    Not sure if this is intentional or not but seems like a bug to me.

    Posted in: Data
  • 0.953798234988752

    posted a message on Unit ability to temporarily copy ability of another unit

    Thanks for taking the time and effort to explain that Banebirst!

     

    I was able to get it part of it working via the PTR features. However, I have noticed both on your test map and on mine that certain cloned abilities will not cast. The button will appear fine but when you try and use the ability (either via clicking or hotkey) it just does nothing.

     

    I noticed this on Zealot charge and Marine stimpack on the test map and several abilities on my map. Can't seem to find the source of it.

     

    Would be super sweet to get it working this way though. Code bloat is way down and it looks cleaner :)

     

     

    Posted in: Data
  • To post a comment, please or register a new account.