|
1 | | -1. New Natives: |
| 1 | +1. New Constants: |
| 2 | + constant unitstate UNIT_STATE_REGEN_LIFE = ConvertUnitState(4) |
| 3 | + constant unitstate UNIT_STATE_REGEN_MANA = ConvertUnitState(5) |
| 4 | +2. New Natives: |
2 | 5 | native StringEncrypt takes string s, string keyString returns string |
3 | 6 | native StringDecrypt takes string s, string keyString returns string |
4 | 7 | native StringToBase64 takes string s returns string |
|
14 | 17 | native GetUnitRevealedTo takes unit whichUnit returns integer |
15 | 18 | native RevealUnit takes unit whichUnit, integer playerMask returns nothing // id << 1 -> BitwiseShiftLeft( id, 1 ) for each player. |
16 | 19 | native UnrevealUnit takes unit whichUnit returns nothing // only works if unit was revealed beforehand. |
17 | | -2. Fixed EVENT_UNIT_ATTACK_FINISHED returning target as source instead. |
18 | | -3. BlzDecPlayerTechResearched is now also implemented. |
19 | | -4. SetPlayerTechResearched rewritten, now it supports tech decrease. |
20 | | -5. Fixed internal function ParseArguments used in CallNative/CallFunction, now it properly parses arguments. |
21 | | -6. Fixed Command Card getting forcefully closed upon item pick up. |
22 | | -7. Fixed SetItemStringField with ICON/NAME fields and such not updating Inventory. |
23 | | -8. CUnit::GetCurrentSight rewritten, now it also ignores internal SIGHT_MAX constant. |
24 | | -9. CUnit::SetCurrentSight rewritten, now it properly works with heroes that were revived faster than 4 seconds. |
25 | | -10. Fixed SetUnitStringField with UNIT_SF_NAME not working for InfoBar. |
26 | | -11. Fixed SetUnitStringField with UNIT_SF_NAME not working for HeroBarButton. |
27 | | -12. Fixed SetUnitStringField with UNIT_SF_NAME not working for TrainableButton. |
28 | | -13. Fixed SetUnitStringField with UNIT_SF_NAME not working for InfoPanelGroup. |
29 | | -14. Fixed SetUnitStringField with UNIT_SF_PROPER_NAME not working for InfoBar. |
30 | | -15. Fixed SetUnitStringField with UNIT_SF_PROPER_NAME not working for HeroBarButton. |
31 | | -16. Fixed SetUnitStringField with UNIT_SF_PROPER_NAME not working for InfoPanelGroup. |
32 | | -17. Rewritten CUnit::IsMoving to instead focus on CAbilityMove::IsMoving instead of internal flags. |
33 | | -18. SetFrameGridFrame now supports "null" frames, this will simply remove frame from the grid. |
| 20 | +3. Fixed EVENT_UNIT_ATTACK_FINISHED returning target as source instead. |
| 21 | +4. BlzDecPlayerTechResearched is now also implemented. |
| 22 | +5. SetPlayerTechResearched rewritten, now it supports tech decrease. |
| 23 | +6. Fixed internal function ParseArguments used in CallNative/CallFunction, now it properly parses arguments. |
| 24 | +7. Fixed Command Card getting forcefully closed upon item pick up. |
| 25 | +8. Fixed SetItemStringField with ICON/NAME fields and such not updating Inventory. |
| 26 | +9. CUnit::GetCurrentSight rewritten, now it also ignores internal SIGHT_MAX constant. |
| 27 | +10. CUnit::SetCurrentSight rewritten, now it properly works with heroes that were revived faster than 4 seconds. |
| 28 | +11. Fixed SetUnitStringField with UNIT_SF_NAME not working for InfoBar. |
| 29 | +12. Fixed SetUnitStringField with UNIT_SF_NAME not working for HeroBarButton. |
| 30 | +13. Fixed SetUnitStringField with UNIT_SF_NAME not working for TrainableButton. |
| 31 | +14. Fixed SetUnitStringField with UNIT_SF_NAME not working for InfoPanelGroup. |
| 32 | +15. Fixed SetUnitStringField with UNIT_SF_PROPER_NAME not working for InfoBar. |
| 33 | +16. Fixed SetUnitStringField with UNIT_SF_PROPER_NAME not working for HeroBarButton. |
| 34 | +17. Fixed SetUnitStringField with UNIT_SF_PROPER_NAME not working for InfoPanelGroup. |
| 35 | +18. Rewritten CUnit::IsMoving to instead focus on CAbilityMove::IsMoving instead of internal flags. |
| 36 | +19. SetFrameGridFrame now supports "null" frames, this will simply remove frame from the grid. |
34 | 37 | Note: frame won't be destroyed/erased, simply removed from grid. |
| 38 | +20. GetUnitState now support UNIT_STATE_MAX_LIFE, UNIT_STATE_MAX_MANA and new unit states. |
| 39 | +21. SetUnitState now support UNIT_STATE_MAX_LIFE, UNIT_STATE_MAX_MANA and new unit states. |
0 commit comments