@@ -25,7 +25,7 @@ internal unit()
2525 public static extern int FoodMadeBy ( int unitType ) ;
2626 /// @CSharpLua.Template = "GetUnitGoldCost({0})"
2727 public static extern int GoldCostOf ( int unitType ) ;
28- /// @CSharpLua.Template = "GetUnitGoldCost ({0})"
28+ /// @CSharpLua.Template = "GetUnitWoodCost ({0})"
2929 public static extern int WoodCostOf ( int unitType ) ;
3030 /// @CSharpLua.Template = "GetUnitBuildTime({0})"
3131 public static extern int BuildTimeOf ( int unitType ) ;
@@ -37,18 +37,18 @@ internal unit()
3737 public static extern bool IsUnitType ( int unitTypeId , unittype unitType ) ;
3838
3939 /// @CSharpLua.Get = "GetUnitGoldCost(GetUnitTypeId({this}))"
40- public static extern int GoldCost { get ; }
41- /// @CSharpLua.Get = "GetUnitGoldCost (GetUnitTypeId({this}))"
42- public static extern int WoodCost { get ; }
40+ public extern int GoldCost { get ; }
41+ /// @CSharpLua.Get = "GetUnitWoodCost (GetUnitTypeId({this}))"
42+ public extern int WoodCost { get ; }
4343 /// @CSharpLua.Get = "GetUnitBuildTime(GetUnitTypeId({this}))"
44- public static extern int BuildTime { get ; }
44+ public extern int BuildTime { get ; }
4545
4646 /// @CSharpLua.Get = "GetUnitX({this})"
4747 /// @CSharpLua.Set = "SetUnitX({this}, {0})"
48- public extern float X { get ; set ; }
48+ public extern new float X { get ; set ; }
4949 /// @CSharpLua.Get = "GetUnitY({this})"
5050 /// @CSharpLua.Set = "SetUnitY({this}, {0})"
51- public extern float Y { get ; set ; }
51+ public extern new float Y { get ; set ; }
5252 /// @CSharpLua.Get = "GetUnitState({this}, UNIT_STATE_MANA)"
5353 /// @CSharpLua.Set = "SetUnitState({this}, UNIT_STATE_MANA, {0})"
5454 public extern float Mana { get ; set ; }
@@ -149,7 +149,7 @@ internal unit()
149149 /// @CSharpLua.Set = "SetUnitPropWindow({this}, {0})"
150150 public extern float PropWindow { get ; set ; }
151151 /// @CSharpLua.Get = "GetUnitAcquireRange({this})"
152- /// @CSharpLua.Get = "SetUnitAcquireRange({this}, {0})"
152+ /// @CSharpLua.Set = "SetUnitAcquireRange({this}, {0})"
153153 public extern float AcquireRange { get ; set ; }
154154 /// @CSharpLua.Get = "GetUnitFlyHeight({this})"
155155 /// @CSharpLua.Set = "SetUnitFlyHeight({this}, {0}, 0)"
@@ -390,7 +390,7 @@ internal unit()
390390 /// @CSharpLua.Template = "UnitMakeAbilityPermanent({this}, {1}, {0})"
391391 public extern bool SetAbilityPermanent ( int abilityId , bool permanent ) ;
392392 /// @CSharpLua.Template = "BlzDeleteHeroAbility({this}, {0})"
393- public extern bool DeleteHeroAbility ( int abilityId ) ;
393+ public extern void DeleteHeroAbility ( int abilityId ) ;
394394
395395 /// @CSharpLua.Template = "UnitRemoveBuffs({this}, {0}, {1})"
396396 public extern void RemoveBuffs ( bool positive , bool negative ) ;
@@ -809,7 +809,7 @@ internal unit()
809809 public extern bool AttackEnabled1 { get ; set ; }
810810
811811 /// @CSharpLua.Get = "BlzGetUnitWeaponIntegerField({this}, UNIT_WEAPON_IF_ATTACK_MAXIMUM_NUMBER_OF_TARGETS, 0)"
812- /// @CSharpLua.Set = "BlzSetUnitWeaponBooleanField ({this}, UNIT_WEAPON_IF_ATTACK_MAXIMUM_NUMBER_OF_TARGETS, 0, {0})"
812+ /// @CSharpLua.Set = "BlzSetUnitWeaponIntegerField ({this}, UNIT_WEAPON_IF_ATTACK_MAXIMUM_NUMBER_OF_TARGETS, 0, {0})"
813813 public extern int AttackMaximumNumberOfTargets1 { get ; set ; }
814814
815815 /// @CSharpLua.Get = "BlzGetUnitWeaponIntegerField({this}, UNIT_WEAPON_IF_ATTACK_ATTACK_TYPE, 0)"
0 commit comments