diff --git a/RChangeLOG_EN.txt b/RChangeLOG_EN.txt index 25fb067d..4dcc6098 100644 --- a/RChangeLOG_EN.txt +++ b/RChangeLOG_EN.txt @@ -277,4 +277,20 @@ v1.5f(2018.5.16) commit by zmcmcc 1. Added new heroes Tusk, Shredder and Furion. 2. Optimized ability usage of TA, QoP, Underlord, Disruptor, Wind Runner, Sniper, NA and Drow Ranger. 3. FIxed some bugs. -4. Updated v7.15 bounty runes. \ No newline at end of file +4. Updated v7.15 bounty runes. +V1.5g (2018.6.6) +1. Fixes the issue that Dazzle is not able to use 3rd ability shadow waves at times. +2. Fixed the issue that Broodmother, Earth spirit, Faceless void, Slark sometimes stuck in the woods. +3. Fixed the issue that prophets could not use 1st ability and 4nd ability. +4. Fixed the issue that the illusions of some heroes (Arc warden) would buy back. +5. Fixed a problem where kunkka may not be able to use abilities. +6. Fixed possible problems with Naga siren. +7. Fixed the issue that the Timber could not use skills +8. Fixed the issue that the Templar Assassins could not use the ultimate ability. +9. Try to fix the problem that Troll warlord will not be able to use abilities properly. +10. Optimize the useage of Weaver's ultimate ability, and now it will use this ability to offset a lot of damage. +11. Fixed the problem of bristleback can not purchasing items. +12. Add Invoker's position to the middle to fix the problem. +13. Now AI will buy more TP and dust. +V1.5h(2018.10.4) +1. Update all hero talent building and ability building to the latest version. \ No newline at end of file diff --git a/RChangeLOG_ZH_CN.txt b/RChangeLOG_ZH_CN.txt index 4cc70f4b..59b2c44c 100644 --- a/RChangeLOG_ZH_CN.txt +++ b/RChangeLOG_ZH_CN.txt @@ -280,4 +280,20 @@ v1.5f(2018.5.15) commit by zmcmcc 1. 加入了新英雄巨牙海民, 伐木机和先知。 2. 优化了圣堂刺客, 痛苦女王, 孽主, 干扰者, 风行者, 火枪, 司夜刺客, 卓尔游侠的技能使用。 3. 修复了一些物品bug。 -4. 更新了7.15赏金符。 \ No newline at end of file +4. 更新了7.15赏金符。 +v1.5g(2018.6.6) +1. 修复了戴泽有时不能正常使用3技能暗影波的问题。 +2. 修复了育母蜘蛛,大地之灵,虚空假面,斯拉克有时会被卡在树林里的问题。 +3. 修复了先知不能使用1技能发芽和大招的问题。 +4. 修复了有些英雄(天穹守望者)的幻象会买活的问题。 +5. 修复了昆卡可能无法使用技能的问题。 +6. 修复了娜迦海妖可能存在的问题。 +7. 修复了伐木机无法使用技能的问题。 +8. 修复了圣堂刺客无法使用大招的问题。 +9. 尝试修复巨魔战将不能正常使用技能的问题。 +10. 优化编织者大招的使用,现在它会使用该技能来抵消大量伤害。 +11. 修复了钢背兽不购买装备的问题。 +12. 将卡尔的定位加入中路,以修复辅助抢中的问题。 +13. 现在AI会更多地购买TP、显影之尘。 +v1.5h(2018.10.4) +1.更新所有英雄的天赋和技能加点至最新版本。 \ No newline at end of file diff --git a/ability_item_usage_abaddon.lua b/ability_item_usage_abaddon.lua index 2347e0df..77e64467 100644 --- a/ability_item_usage_abaddon.lua +++ b/ability_item_usage_abaddon.lua @@ -49,13 +49,13 @@ local TalentTree={ return Talents[1] end, function() - return Talents[3] + return Talents[4] end, function() return Talents[6] end, function() - return Talents[8] + return Talents[7] end } -------------------------------------- diff --git a/ability_item_usage_abyssal_underlord.lua b/ability_item_usage_abyssal_underlord.lua index a2851c3e..d2ca3bd4 100644 --- a/ability_item_usage_abyssal_underlord.lua +++ b/ability_item_usage_abyssal_underlord.lua @@ -21,7 +21,7 @@ local AbilityToLevelUp= Abilities[3], Abilities[1], Abilities[1], - Abilities[3], + Abilities[2], Abilities[1], Abilities[2], Abilities[1], @@ -30,7 +30,7 @@ local AbilityToLevelUp= "talent", Abilities[2], Abilities[4], - Abilities[2], + Abilities[3], Abilities[3], "talent", Abilities[3], diff --git a/ability_item_usage_alchemist.lua b/ability_item_usage_alchemist.lua index 1e7d758c..d5f1eaa4 100644 --- a/ability_item_usage_alchemist.lua +++ b/ability_item_usage_alchemist.lua @@ -20,20 +20,20 @@ local AbilityToLevelUp= { Abilities[3], Abilities[1], - Abilities[3], Abilities[1], + Abilities[3], Abilities[1], Abilities[4], - Abilities[2], Abilities[1], - Abilities[2], + Abilities[3], + Abilities[3], "talent", Abilities[2], Abilities[4], Abilities[2], - Abilities[3], + Abilities[2], "talent", - Abilities[3], + Abilities[2], "nil", Abilities[4], "nil", @@ -50,13 +50,13 @@ local TalentTree={ return Talents[2] end, function() - return Talents[3] + return Talents[4] end, function() return Talents[6] end, function() - return Talents[8] + return Talents[7] end } diff --git a/ability_item_usage_ancient_apparition.lua b/ability_item_usage_ancient_apparition.lua index a58c6fa0..e8c64102 100644 --- a/ability_item_usage_ancient_apparition.lua +++ b/ability_item_usage_ancient_apparition.lua @@ -53,10 +53,10 @@ local TalentTree={ return Talents[4] end, function() - return Talents[5] + return Talents[6] end, function() - return Talents[8] + return Talents[7] end } diff --git a/ability_item_usage_antimage.lua b/ability_item_usage_antimage.lua index bf271851..8c71c81f 100644 --- a/ability_item_usage_antimage.lua +++ b/ability_item_usage_antimage.lua @@ -47,16 +47,16 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() - return Talents[3] + return Talents[4] end, function() return Talents[6] end, function() - return Talents[8] + return Talents[7] end } diff --git a/ability_item_usage_arc_warden.lua b/ability_item_usage_arc_warden.lua index f74b3ac6..84b67500 100644 --- a/ability_item_usage_arc_warden.lua +++ b/ability_item_usage_arc_warden.lua @@ -5,11 +5,15 @@ -------------------------------------- -- General Initialization -------------------------------------- +if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then + return; +end + local utility = require( GetScriptDirectory().."/utility" ) require(GetScriptDirectory() .. "/ability_item_usage_generic") local debugmode=false -local npcBot = GetBot() +local npcBot = nil; local Talents ={} local Abilities ={} local AbilitiesReal ={} @@ -18,15 +22,15 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[1], - Abilities[3], Abilities[3], Abilities[1], - Abilities[3], - Abilities[4], + Abilities[1], Abilities[3], Abilities[1], + Abilities[4], Abilities[1], + Abilities[3], + Abilities[3], "talent", Abilities[2], Abilities[4], @@ -520,6 +524,8 @@ end function AbilityUsageThink() + if npcBot == nil then npcBot = GetBot(); end + -- Check if we're already using an ability if ( npcBot:IsUsingAbility() or npcBot:IsChanneling() or npcBot:IsSilenced() ) then diff --git a/ability_item_usage_axe.lua b/ability_item_usage_axe.lua index 67fb7edd..c780c86a 100644 --- a/ability_item_usage_axe.lua +++ b/ability_item_usage_axe.lua @@ -18,10 +18,10 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { + Abilities[2], Abilities[3], - Abilities[1], Abilities[3], - Abilities[2], + Abilities[1], Abilities[3], Abilities[4], Abilities[3], @@ -47,7 +47,7 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() return Talents[3] @@ -56,7 +56,7 @@ local TalentTree={ return Talents[5] end, function() - return Talents[7] + return Talents[8] end } diff --git a/ability_item_usage_bane.lua b/ability_item_usage_bane.lua index 955ecff5..8c320aa3 100644 --- a/ability_item_usage_bane.lua +++ b/ability_item_usage_bane.lua @@ -19,22 +19,22 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[1], - Abilities[3], Abilities[2], + Abilities[3], Abilities[2], + Abilities[1], Abilities[2], Abilities[4], Abilities[2], - Abilities[1], - Abilities[1], - "talent", - Abilities[1], - Abilities[4], Abilities[3], Abilities[3], "talent", Abilities[3], + Abilities[4], + Abilities[1], + Abilities[1], + "talent", + Abilities[1], "nil", Abilities[4], "nil", diff --git a/ability_item_usage_batrider.lua b/ability_item_usage_batrider.lua index aa55f3b9..443f05b2 100644 --- a/ability_item_usage_batrider.lua +++ b/ability_item_usage_batrider.lua @@ -47,7 +47,7 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() return Talents[4] diff --git a/ability_item_usage_beastmaster.lua b/ability_item_usage_beastmaster.lua index 8691bafd..5091936a 100644 --- a/ability_item_usage_beastmaster.lua +++ b/ability_item_usage_beastmaster.lua @@ -19,18 +19,18 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { Abilities[1], - Abilities[3], + Abilities[2], Abilities[1], - Abilities[3], + Abilities[2], Abilities[1], Abilities[4], Abilities[1], Abilities[2], Abilities[2], "talent", - Abilities[2], + Abilities[3], Abilities[4], - Abilities[2], + Abilities[3], Abilities[3], "talent", Abilities[3], diff --git a/ability_item_usage_bloodseeker.lua b/ability_item_usage_bloodseeker.lua index cf54798a..b3deb3cf 100644 --- a/ability_item_usage_bloodseeker.lua +++ b/ability_item_usage_bloodseeker.lua @@ -47,7 +47,7 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() return Talents[3] diff --git a/ability_item_usage_brewmaster.lua b/ability_item_usage_brewmaster.lua index 0745f5e3..e81498c7 100644 --- a/ability_item_usage_brewmaster.lua +++ b/ability_item_usage_brewmaster.lua @@ -55,7 +55,7 @@ local TalentTree={ return Talents[3] end, function() - return Talents[5] + return Talents[6] end, function() return Talents[7] diff --git a/ability_item_usage_bristleback.lua b/ability_item_usage_bristleback.lua index f1af9d71..9467878c 100644 --- a/ability_item_usage_bristleback.lua +++ b/ability_item_usage_bristleback.lua @@ -22,11 +22,11 @@ local AbilityToLevelUp= Abilities[2], Abilities[3], Abilities[2], - Abilities[3], + Abilities[1], Abilities[2], Abilities[4], Abilities[2], - Abilities[1], + Abilities[3], Abilities[3], "talent", Abilities[3], diff --git a/ability_item_usage_broodmother.lua b/ability_item_usage_broodmother.lua index 8153d275..39d61d1a 100644 --- a/ability_item_usage_broodmother.lua +++ b/ability_item_usage_broodmother.lua @@ -56,7 +56,7 @@ local TalentTree = { return Talents[6] end, function() - return Talents[8] + return Talents[7] end } diff --git a/ability_item_usage_centaur.lua b/ability_item_usage_centaur.lua index 1482a662..faaf8a15 100644 --- a/ability_item_usage_centaur.lua +++ b/ability_item_usage_centaur.lua @@ -25,15 +25,15 @@ local AbilityToLevelUp= Abilities[2], Abilities[4], Abilities[2], - Abilities[3], - Abilities[3], - "talent", - Abilities[3], - Abilities[4], Abilities[1], Abilities[1], "talent", Abilities[1], + Abilities[4], + Abilities[3], + Abilities[3], + "talent", + Abilities[3], "nil", Abilities[4], "nil", @@ -52,7 +52,7 @@ local TalentTree={ return Talents[3] end, function() - return Talents[6] + return Talents[5] end, function() return Talents[7] diff --git a/ability_item_usage_chaos_knight.lua b/ability_item_usage_chaos_knight.lua index 8773116d..eeac6ab0 100644 --- a/ability_item_usage_chaos_knight.lua +++ b/ability_item_usage_chaos_knight.lua @@ -20,20 +20,20 @@ local AbilityToLevelUp= { Abilities[1], Abilities[2], - Abilities[2], + Abilities[1], Abilities[3], - Abilities[2], + Abilities[1], Abilities[4], + Abilities[1], + Abilities[2], + Abilities[2], + "talent", Abilities[2], + Abilities[4], Abilities[3], Abilities[3], "talent", Abilities[3], - Abilities[4], - Abilities[1], - Abilities[1], - "talent", - Abilities[1], "nil", Abilities[4], "nil", diff --git a/ability_item_usage_chen.lua b/ability_item_usage_chen.lua index 68105825..48438f8b 100644 --- a/ability_item_usage_chen.lua +++ b/ability_item_usage_chen.lua @@ -21,19 +21,19 @@ local AbilityToLevelUp= Abilities[3], Abilities[1], Abilities[3], - Abilities[2], + Abilities[1], Abilities[3], Abilities[4], Abilities[3], - Abilities[2], - Abilities[2], + Abilities[1], + Abilities[1], "talent", Abilities[2], Abilities[4], - Abilities[1], - Abilities[1], + Abilities[2], + Abilities[2], "talent", - Abilities[1], + Abilities[2], "nil", Abilities[4], "nil", @@ -53,7 +53,7 @@ local TalentTree={ return Talents[4] end, function() - return Talents[6] + return Talents[5] end, function() return Talents[8] diff --git a/ability_item_usage_clinkz.lua b/ability_item_usage_clinkz.lua index eba54e4a..6b5ae0f8 100644 --- a/ability_item_usage_clinkz.lua +++ b/ability_item_usage_clinkz.lua @@ -46,7 +46,7 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[4] diff --git a/ability_item_usage_crystal_maiden.lua b/ability_item_usage_crystal_maiden.lua index c20cd72f..60b71d45 100644 --- a/ability_item_usage_crystal_maiden.lua +++ b/ability_item_usage_crystal_maiden.lua @@ -18,17 +18,17 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[2], - Abilities[3], - Abilities[3], Abilities[1], Abilities[3], - Abilities[4], - Abilities[3], Abilities[1], + Abilities[2], Abilities[1], - "talent", + Abilities[4], Abilities[1], + Abilities[3], + Abilities[3], + "talent", + Abilities[3], Abilities[4], Abilities[2], Abilities[2], @@ -46,10 +46,10 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() - return Talents[2] + return Talents[4] end, function() return Talents[6] diff --git a/ability_item_usage_dark_seer.lua b/ability_item_usage_dark_seer.lua index e54ce980..3fcca797 100644 --- a/ability_item_usage_dark_seer.lua +++ b/ability_item_usage_dark_seer.lua @@ -22,9 +22,9 @@ local AbilityToLevelUp= Abilities[2], Abilities[3], Abilities[2], - Abilities[1], - Abilities[2], Abilities[3], + Abilities[2], + Abilities[1], Abilities[4], "talent", Abilities[3], diff --git a/ability_item_usage_dazzle.lua b/ability_item_usage_dazzle.lua index a6e5113f..21fa8ae8 100644 --- a/ability_item_usage_dazzle.lua +++ b/ability_item_usage_dazzle.lua @@ -18,17 +18,17 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { + Abilities[1], Abilities[3], + Abilities[1], Abilities[2], - Abilities[3], Abilities[1], - Abilities[3], Abilities[4], - Abilities[3], - Abilities[1], Abilities[1], + Abilities[3], + Abilities[3], "talent", - Abilities[1], + Abilities[3], Abilities[4], Abilities[2], Abilities[2], diff --git a/ability_item_usage_death_prophet.lua b/ability_item_usage_death_prophet.lua index cce9f753..2018c3fe 100644 --- a/ability_item_usage_death_prophet.lua +++ b/ability_item_usage_death_prophet.lua @@ -18,17 +18,17 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[3], Abilities[1], Abilities[3], Abilities[1], - Abilities[3], - Abilities[4], Abilities[2], - Abilities[3], Abilities[1], - "talent", + Abilities[4], Abilities[1], + Abilities[3], + Abilities[3], + "talent", + Abilities[3], Abilities[4], Abilities[2], Abilities[2], @@ -47,13 +47,13 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() - return Talents[3] + return Talents[4] end, function() - return Talents[6] + return Talents[5] end, function() return Talents[8] diff --git a/ability_item_usage_disruptor.lua b/ability_item_usage_disruptor.lua index 40fe7e6e..fd6dba39 100644 --- a/ability_item_usage_disruptor.lua +++ b/ability_item_usage_disruptor.lua @@ -20,20 +20,20 @@ local AbilityToLevelUp= { Abilities[1], Abilities[3], + Abilities[1], Abilities[2], - Abilities[2], - Abilities[2], + Abilities[1], Abilities[4], - Abilities[2], + Abilities[1], Abilities[3], Abilities[3], "talent", Abilities[3], Abilities[4], - Abilities[1], - Abilities[1], + Abilities[2], + Abilities[2], "talent", - Abilities[1], + Abilities[2], "nil", Abilities[4], "nil", @@ -47,7 +47,7 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() return Talents[3] diff --git a/ability_item_usage_doom_bringer.lua b/ability_item_usage_doom_bringer.lua index 5ae98379..67e9978a 100644 --- a/ability_item_usage_doom_bringer.lua +++ b/ability_item_usage_doom_bringer.lua @@ -18,17 +18,17 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { + Abilities[3], Abilities[1], - Abilities[2], Abilities[3], Abilities[2], - Abilities[2], - Abilities[6], - Abilities[2], Abilities[3], + Abilities[6], Abilities[3], + Abilities[2], + Abilities[2], "talent", - Abilities[3], + Abilities[2], Abilities[6], Abilities[1], Abilities[1], diff --git a/ability_item_usage_dragon_knight.lua b/ability_item_usage_dragon_knight.lua index 437e066c..892dc624 100644 --- a/ability_item_usage_dragon_knight.lua +++ b/ability_item_usage_dragon_knight.lua @@ -20,12 +20,12 @@ local AbilityToLevelUp= { Abilities[3], Abilities[1], + Abilities[3], Abilities[2], Abilities[1], - Abilities[1], Abilities[4], Abilities[1], - Abilities[3], + Abilities[1], Abilities[3], "talent", Abilities[3], diff --git a/ability_item_usage_drow_ranger.lua b/ability_item_usage_drow_ranger.lua index 8d023033..3bc33476 100644 --- a/ability_item_usage_drow_ranger.lua +++ b/ability_item_usage_drow_ranger.lua @@ -21,14 +21,14 @@ local AbilityToLevelUp= Abilities[3], Abilities[1], Abilities[3], + Abilities[1], Abilities[2], - Abilities[3], Abilities[4], - Abilities[3], Abilities[1], Abilities[1], + Abilities[3], "talent", - Abilities[1], + Abilities[3], Abilities[4], Abilities[2], Abilities[2], diff --git a/ability_item_usage_earth_spirit.lua b/ability_item_usage_earth_spirit.lua index b007cc9f..6365670a 100644 --- a/ability_item_usage_earth_spirit.lua +++ b/ability_item_usage_earth_spirit.lua @@ -25,15 +25,15 @@ local AbilityToLevelUp= Abilities[1], Abilities[6], Abilities[1], - Abilities[3], - Abilities[3], - "talent", - Abilities[3], - Abilities[6], Abilities[2], Abilities[2], "talent", Abilities[2], + Abilities[6], + Abilities[3], + Abilities[3], + "talent", + Abilities[3], "nil", Abilities[6], "nil", @@ -53,7 +53,7 @@ local TalentTree={ return Talents[4] end, function() - return Talents[5] + return Talents[6] end, function() return Talents[7] diff --git a/ability_item_usage_elder_titan.lua b/ability_item_usage_elder_titan.lua index 394ff7bb..757eda95 100644 --- a/ability_item_usage_elder_titan.lua +++ b/ability_item_usage_elder_titan.lua @@ -22,17 +22,17 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[1], Abilities[2], Abilities[1], + Abilities[2], Abilities[3], - Abilities[1], - Abilities[4], - Abilities[1], Abilities[2], + Abilities[4], Abilities[2], + Abilities[1], + Abilities[1], "talent", - Abilities[2], + Abilities[1], Abilities[4], Abilities[3], Abilities[3], diff --git a/ability_item_usage_ember_spirit.lua b/ability_item_usage_ember_spirit.lua index 1666dc27..1965c5c7 100644 --- a/ability_item_usage_ember_spirit.lua +++ b/ability_item_usage_ember_spirit.lua @@ -18,8 +18,8 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[1], Abilities[3], + Abilities[1], Abilities[3], Abilities[1], Abilities[3], diff --git a/ability_item_usage_enchantress.lua b/ability_item_usage_enchantress.lua index b5fa31c4..5dbcf1f1 100644 --- a/ability_item_usage_enchantress.lua +++ b/ability_item_usage_enchantress.lua @@ -18,10 +18,10 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[2], + Abilities[3], Abilities[1], Abilities[1], - Abilities[3], + Abilities[2], Abilities[1], Abilities[4], Abilities[1], @@ -47,13 +47,13 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[3] end, function() - return Talents[6] + return Talents[5] end, function() return Talents[7] diff --git a/ability_item_usage_faceless_void.lua b/ability_item_usage_faceless_void.lua index 488a74b7..ff29d7c2 100644 --- a/ability_item_usage_faceless_void.lua +++ b/ability_item_usage_faceless_void.lua @@ -20,15 +20,15 @@ local AbilityToLevelUp= { Abilities[1], Abilities[3], - Abilities[3], Abilities[1], - Abilities[3], - Abilities[4], - Abilities[3], + Abilities[2], Abilities[1], + Abilities[4], Abilities[1], + Abilities[3], + Abilities[3], "talent", - Abilities[2], + Abilities[3], Abilities[4], Abilities[2], Abilities[2], @@ -53,7 +53,7 @@ local TalentTree={ return Talents[3] end, function() - return Talents[5] + return Talents[6] end, function() return Talents[7] diff --git a/ability_item_usage_generic.lua b/ability_item_usage_generic.lua index 0dd45724..cf2b234c 100644 --- a/ability_item_usage_generic.lua +++ b/ability_item_usage_generic.lua @@ -51,20 +51,20 @@ function CourierUsageThink() end if IsFlyingCourier(npcCourier) then - local burst = npcCourier:GetAbilityByName('courier_shield'); - if IsTargetedByUnit(npcCourier) then - if burst:IsFullyCastable() and apiAvailable == true - then - npcBot:ActionImmediate_Courier( npcCourier, COURIER_ACTION_BURST ); - return - elseif DotaTime() > returnTime + 7.0 - --and not burst:IsFullyCastable() and not npcCourier:HasModifier('modifier_courier_shield') - then - npcBot:ActionImmediate_Courier( npcCourier, COURIER_ACTION_RETURN ); - returnTime = DotaTime(); - return - end - end + -- local burst = npcCourier:GetAbilityByName('courier_shield'); + -- if IsTargetedByUnit(npcCourier) then + -- if burst:IsFullyCastable() and apiAvailable == true + -- then + -- npcBot:ActionImmediate_Courier( npcCourier, COURIER_ACTION_BURST ); + -- return + -- elseif DotaTime() > returnTime + 7.0 + -- --and not burst:IsFullyCastable() and not npcCourier:HasModifier('modifier_courier_shield') + -- then + -- npcBot:ActionImmediate_Courier( npcCourier, COURIER_ACTION_RETURN ); + -- returnTime = DotaTime(); + -- return + -- end + -- end else if IsTargetedByUnit(npcCourier) then if DotaTime() - returnTime > 7.0 then @@ -343,9 +343,9 @@ end --GXC BUYBACK LOGIC function BuybackUsageThink() local npcBot=GetBot() - if npcBot:IsIllusion() then + if npcBot:IsInvulnerable() or not npcBot:IsHero() or not string.find(npcBot:GetUnitName(), "hero") or npcBot:IsIllusion() then return; - end + end -- no buyback, no need to use GetUnitList() for performance considerations if ( not CanBuybackUpperRespawnTime(20) ) then @@ -1203,7 +1203,27 @@ function UnImplementedItemUsage() end end - + -- test code -- + + -- local wards=IsItemAvailable("item_ward_dispenser"); + + -- if(wards~=nil) + -- then + -- local sentry=wards:GetSecondaryCharges(); + -- local observer= wards:GetCurrentCharges(); + -- local state=wards:GetToggleState(); + -- print(npcBot:GetUnitName().."2nd Charge:"..sentry.." 1st Charge"..observer); + + -- if(state==true) + -- then + -- npcBot:Action_UseAbilityOnEntity(wards,npcBot); + -- print("state true") + -- else + -- npcBot:Action_UseAbilityOnEntity(wards,npcBot); + -- print("state false") + -- end + + -- end local WardList=GetUnitList(UNIT_LIST_ALLIED_WARDS) local HaveWard=false diff --git a/ability_item_usage_gyrocopter.lua b/ability_item_usage_gyrocopter.lua index a37379c9..152770ae 100644 --- a/ability_item_usage_gyrocopter.lua +++ b/ability_item_usage_gyrocopter.lua @@ -20,20 +20,20 @@ local AbilityToLevelUp= { Abilities[2], Abilities[1], - Abilities[1], + Abilities[2], Abilities[3], - Abilities[1], + Abilities[2], Abilities[4], + Abilities[2], + Abilities[1], + Abilities[1], + "talent", Abilities[1], + Abilities[4], Abilities[3], Abilities[3], "talent", Abilities[3], - Abilities[4], - Abilities[2], - Abilities[2], - "talent", - Abilities[2], "nil", Abilities[4], "nil", @@ -50,13 +50,13 @@ local TalentTree={ return Talents[1] end, function() - return Talents[3] + return Talents[4] end, function() return Talents[5] end, function() - return Talents[8] + return Talents[7] end } diff --git a/ability_item_usage_jakiro.lua b/ability_item_usage_jakiro.lua index f8a89149..a81939d0 100644 --- a/ability_item_usage_jakiro.lua +++ b/ability_item_usage_jakiro.lua @@ -50,13 +50,13 @@ local TalentTree={ return Talents[1] end, function() - return Talents[3] + return Talents[4] end, function() - return Talents[5] + return Talents[6] end, function() - return Talents[7] + return Talents[8] end } diff --git a/ability_item_usage_juggernaut.lua b/ability_item_usage_juggernaut.lua index c13e86c7..e9620426 100644 --- a/ability_item_usage_juggernaut.lua +++ b/ability_item_usage_juggernaut.lua @@ -18,19 +18,19 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[1], - Abilities[3], Abilities[1], Abilities[2], Abilities[1], + Abilities[3], + Abilities[1], Abilities[4], Abilities[1], Abilities[3], - Abilities[2], + Abilities[3], "talent", Abilities[3], Abilities[4], - Abilities[3], + Abilities[2], Abilities[2], "talent", Abilities[2], @@ -53,7 +53,7 @@ local TalentTree={ return Talents[4] end, function() - return Talents[6] + return Talents[5] end, function() return Talents[8] diff --git a/ability_item_usage_keeper_of_the_light.lua b/ability_item_usage_keeper_of_the_light.lua index 3f676a63..87e1077d 100644 --- a/ability_item_usage_keeper_of_the_light.lua +++ b/ability_item_usage_keeper_of_the_light.lua @@ -557,7 +557,7 @@ Consider[4]=function() if player ~= nil and player:IsAlive() and player:GetActiveMode() ~= BOT_MODE_RETREAT then local dist = GetUnitToUnitDistance(nearbyTower[1], player); local health = player:GetHealth()/player:GetMaxHealth(); - if IsPlayerBot(player:GetPlayerID()) and dist > maxDist and dist > 2500 and health >= 0.25 then + if IsPlayerBot(player:GetPlayerID()) and dist > maxDist and dist > 2500 and health >= 0.5 then maxDist = dist; target = GetTeamMember(i); end @@ -583,7 +583,7 @@ Consider[4]=function() if player ~= nil and player:IsAlive() and player:GetActiveMode() ~= BOT_MODE_RETREAT then local dist = GetUnitToUnitDistance(nearbyTower[1], player); local health = player:GetHealth()/player:GetMaxHealth(); - if IsPlayerBot(player:GetPlayerID()) and dist > maxDist and dist > 2500 and health >= 0.25 then + if IsPlayerBot(player:GetPlayerID()) and dist > maxDist and dist > 2500 and health >= 0.5 then maxDist = dist; target = GetTeamMember(i); end @@ -612,7 +612,7 @@ Consider[4]=function() if player ~= nil and player:IsAlive() and player:GetActiveMode() ~= BOT_MODE_RETREAT then local dist = GetUnitToUnitDistance(player, npcBot); local health = player:GetHealth()/player:GetMaxHealth(); - if IsPlayerBot(player:GetPlayerID()) and dist > maxDist and dist > 2500 and health >= 0.25 then + if IsPlayerBot(player:GetPlayerID()) and dist > maxDist and dist > 2500 and health >= 0.5 then maxDist = dist; target = GetTeamMember(i); end diff --git a/ability_item_usage_kunkka.lua b/ability_item_usage_kunkka.lua index d4868b27..0cba6085 100644 --- a/ability_item_usage_kunkka.lua +++ b/ability_item_usage_kunkka.lua @@ -47,7 +47,7 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() return Talents[3] @@ -56,7 +56,7 @@ local TalentTree={ return Talents[6] end, function() - return Talents[8] + return Talents[7] end } diff --git a/ability_item_usage_leshrac.lua b/ability_item_usage_leshrac.lua index 35ca3ae1..f8bb85c1 100644 --- a/ability_item_usage_leshrac.lua +++ b/ability_item_usage_leshrac.lua @@ -19,21 +19,21 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { Abilities[3], - Abilities[2], Abilities[1], Abilities[3], + Abilities[1], Abilities[3], - Abilities[2], + Abilities[1], Abilities[3], Abilities[4], - Abilities[2], + Abilities[1], "talent", Abilities[2], Abilities[4], - Abilities[1], - Abilities[1], + Abilities[2], + Abilities[2], "talent", - Abilities[1], + Abilities[2], "nil", Abilities[4], "nil", diff --git a/ability_item_usage_lich.lua b/ability_item_usage_lich.lua index e5ca1e5e..c88d129b 100644 --- a/ability_item_usage_lich.lua +++ b/ability_item_usage_lich.lua @@ -25,8 +25,8 @@ local AbilityToLevelUp= Abilities[1], Abilities[4], Abilities[1], - Abilities[3], Abilities[2], + Abilities[3], "talent", Abilities[3], Abilities[4], diff --git a/ability_item_usage_life_stealer.lua b/ability_item_usage_life_stealer.lua index efe34403..2fe85f97 100644 --- a/ability_item_usage_life_stealer.lua +++ b/ability_item_usage_life_stealer.lua @@ -21,14 +21,14 @@ local AbilityToLevelUp= Abilities[2], Abilities[3], Abilities[1], - Abilities[3], - Abilities[3], - Abilities[5], - Abilities[3], Abilities[1], Abilities[1], - "talent", + Abilities[5], Abilities[1], + Abilities[3], + Abilities[3], + "talent", + Abilities[3], Abilities[5], Abilities[2], Abilities[2], diff --git a/ability_item_usage_lina.lua b/ability_item_usage_lina.lua index 39f65a5b..0e55647a 100644 --- a/ability_item_usage_lina.lua +++ b/ability_item_usage_lina.lua @@ -18,11 +18,11 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[1], - Abilities[3], Abilities[1], Abilities[2], Abilities[1], + Abilities[3], + Abilities[1], Abilities[4], Abilities[1], Abilities[3], @@ -46,7 +46,7 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() return Talents[3] diff --git a/ability_item_usage_lion.lua b/ability_item_usage_lion.lua index 05ddda83..d943ac11 100644 --- a/ability_item_usage_lion.lua +++ b/ability_item_usage_lion.lua @@ -47,13 +47,13 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() return Talents[3] end, function() - return Talents[6] + return Talents[5] end, function() return Talents[7] diff --git a/ability_item_usage_luna.lua b/ability_item_usage_luna.lua index 23ba6b5b..00cddff3 100644 --- a/ability_item_usage_luna.lua +++ b/ability_item_usage_luna.lua @@ -18,8 +18,8 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[3], Abilities[1], + Abilities[3], Abilities[1], Abilities[3], Abilities[1], diff --git a/ability_item_usage_lycan.lua b/ability_item_usage_lycan.lua index 85e5c52d..ceabc233 100644 --- a/ability_item_usage_lycan.lua +++ b/ability_item_usage_lycan.lua @@ -19,21 +19,21 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { Abilities[3], - Abilities[2], - Abilities[3], - Abilities[2], + Abilities[1], Abilities[3], + Abilities[1], + Abilities[1], Abilities[4], + Abilities[1], + Abilities[3], Abilities[3], - Abilities[2], - Abilities[2], "talent", - Abilities[1], + Abilities[2], Abilities[4], - Abilities[1], - Abilities[1], + Abilities[2], + Abilities[2], "talent", - Abilities[1], + Abilities[2], "nil", Abilities[4], "nil", diff --git a/ability_item_usage_medusa.lua b/ability_item_usage_medusa.lua index 20085d08..a5cd692a 100644 --- a/ability_item_usage_medusa.lua +++ b/ability_item_usage_medusa.lua @@ -47,7 +47,7 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[3] diff --git a/ability_item_usage_mirana.lua b/ability_item_usage_mirana.lua index 3e4b2ff6..c72e9b4f 100644 --- a/ability_item_usage_mirana.lua +++ b/ability_item_usage_mirana.lua @@ -47,10 +47,10 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() - return Talents[3] + return Talents[4] end, function() return Talents[6] diff --git a/ability_item_usage_naga_siren.lua b/ability_item_usage_naga_siren.lua index b976d365..ce712ae0 100644 --- a/ability_item_usage_naga_siren.lua +++ b/ability_item_usage_naga_siren.lua @@ -56,7 +56,7 @@ local TalentTree={ return Talents[5] end, function() - return Talents[8] + return Talents[7] end } diff --git a/ability_item_usage_necrolyte.lua b/ability_item_usage_necrolyte.lua index 976980fa..99acc24e 100644 --- a/ability_item_usage_necrolyte.lua +++ b/ability_item_usage_necrolyte.lua @@ -18,8 +18,8 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[3], Abilities[1], + Abilities[3], Abilities[1], Abilities[2], Abilities[1], diff --git a/ability_item_usage_nevermore.lua b/ability_item_usage_nevermore.lua index c28c12be..8ce007ec 100644 --- a/ability_item_usage_nevermore.lua +++ b/ability_item_usage_nevermore.lua @@ -47,7 +47,7 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[4] diff --git a/ability_item_usage_night_stalker.lua b/ability_item_usage_night_stalker.lua index dd234e72..d3d08a2d 100644 --- a/ability_item_usage_night_stalker.lua +++ b/ability_item_usage_night_stalker.lua @@ -21,11 +21,11 @@ local AbilityToLevelUp= Abilities[1], Abilities[3], Abilities[1], - Abilities[3], + Abilities[2], Abilities[1], Abilities[4], Abilities[1], - Abilities[2], + Abilities[3], Abilities[3], "talent", Abilities[3], diff --git a/ability_item_usage_nyx_assassin.lua b/ability_item_usage_nyx_assassin.lua index a01caf97..64ce2f77 100644 --- a/ability_item_usage_nyx_assassin.lua +++ b/ability_item_usage_nyx_assassin.lua @@ -22,19 +22,19 @@ local AbilityToLevelUp= Abilities[1], Abilities[3], Abilities[1], - Abilities[3], + Abilities[2], Abilities[1], Abilities[5], Abilities[1], Abilities[2], - Abilities[3], - "talent", - Abilities[3], - Abilities[5], - Abilities[2], Abilities[2], "talent", Abilities[2], + Abilities[5], + Abilities[3], + Abilities[3], + "talent", + Abilities[3], "nil", Abilities[5], "nil", diff --git a/ability_item_usage_obsidian_destroyer.lua b/ability_item_usage_obsidian_destroyer.lua index 876ef50f..6f706a74 100644 --- a/ability_item_usage_obsidian_destroyer.lua +++ b/ability_item_usage_obsidian_destroyer.lua @@ -56,7 +56,7 @@ local TalentTree={ return Talents[5] end, function() - return Talents[7] + return Talents[8] end } diff --git a/ability_item_usage_ogre_magi.lua b/ability_item_usage_ogre_magi.lua index d6146f32..1b4f311e 100644 --- a/ability_item_usage_ogre_magi.lua +++ b/ability_item_usage_ogre_magi.lua @@ -46,7 +46,7 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[4] diff --git a/ability_item_usage_oracle.lua b/ability_item_usage_oracle.lua index 8f89e013..9b495535 100644 --- a/ability_item_usage_oracle.lua +++ b/ability_item_usage_oracle.lua @@ -50,7 +50,7 @@ local TalentTree={ return Talents[2] end, function() - return Talents[3] + return Talents[4] end, function() return Talents[5] diff --git a/ability_item_usage_pudge.lua b/ability_item_usage_pudge.lua index 598c71a9..bdad0f13 100644 --- a/ability_item_usage_pudge.lua +++ b/ability_item_usage_pudge.lua @@ -18,8 +18,8 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[2], Abilities[1], + Abilities[2], Abilities[1], Abilities[2], Abilities[1], diff --git a/ability_item_usage_pugna.lua b/ability_item_usage_pugna.lua index 24ecb83f..d204e347 100644 --- a/ability_item_usage_pugna.lua +++ b/ability_item_usage_pugna.lua @@ -25,15 +25,15 @@ local AbilityToLevelUp= Abilities[1], Abilities[4], Abilities[1], - Abilities[3], - Abilities[3], - "talent", - Abilities[3], - Abilities[4], Abilities[2], Abilities[2], "talent", Abilities[2], + Abilities[4], + Abilities[3], + Abilities[3], + "talent", + Abilities[3], "nil", Abilities[4], "nil", @@ -53,10 +53,10 @@ local TalentTree={ return Talents[3] end, function() - return Talents[5] + return Talents[6] end, function() - return Talents[7] + return Talents[8] end } diff --git a/ability_item_usage_queenofpain.lua b/ability_item_usage_queenofpain.lua index ced3697e..d14b2f2f 100644 --- a/ability_item_usage_queenofpain.lua +++ b/ability_item_usage_queenofpain.lua @@ -22,13 +22,13 @@ local AbilityToLevelUp= Abilities[2], Abilities[1], Abilities[3], - Abilities[3], + Abilities[1], Abilities[4], + Abilities[1], Abilities[3], Abilities[3], - Abilities[1], "talent", - Abilities[1], + Abilities[3], Abilities[4], Abilities[2], Abilities[2], @@ -56,7 +56,7 @@ local TalentTree={ return Talents[5] end, function() - return Talents[7] + return Talents[8] end } diff --git a/ability_item_usage_razor.lua b/ability_item_usage_razor.lua index 34e7a630..28397342 100644 --- a/ability_item_usage_razor.lua +++ b/ability_item_usage_razor.lua @@ -52,7 +52,7 @@ local TalentTree={ return Talents[4] end, function() - return Talents[6] + return Talents[5] end, function() return Talents[7] diff --git a/ability_item_usage_riki.lua b/ability_item_usage_riki.lua index 82999803..8c667695 100644 --- a/ability_item_usage_riki.lua +++ b/ability_item_usage_riki.lua @@ -52,10 +52,10 @@ local TalentTree={ return Talents[3] end, function() - return Talents[5] + return Talents[6] end, function() - return Talents[8] + return Talents[7] end } diff --git a/ability_item_usage_sand_king.lua b/ability_item_usage_sand_king.lua index bf0155dd..735bca2d 100644 --- a/ability_item_usage_sand_king.lua +++ b/ability_item_usage_sand_king.lua @@ -23,17 +23,17 @@ local AbilityToLevelUp= Abilities[1], Abilities[2], Abilities[1], - Abilities[3], - Abilities[1], - Abilities[3], - Abilities[4], - "talent", - Abilities[3], Abilities[4], + Abilities[1], Abilities[2], Abilities[2], "talent", Abilities[2], + Abilities[4], + Abilities[3], + Abilities[3], + "talent", + Abilities[3], "nil", Abilities[4], "nil", diff --git a/ability_item_usage_shadow_demon.lua b/ability_item_usage_shadow_demon.lua index cc54aab9..7a1f6fb4 100644 --- a/ability_item_usage_shadow_demon.lua +++ b/ability_item_usage_shadow_demon.lua @@ -22,14 +22,14 @@ local AbilityToLevelUp= Abilities[1], Abilities[3], Abilities[3], - Abilities[1], + Abilities[2], Abilities[3], Abilities[5], Abilities[3], Abilities[1], Abilities[1], "talent", - Abilities[2], + Abilities[1], Abilities[5], Abilities[2], Abilities[2], @@ -47,7 +47,7 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[3] @@ -56,7 +56,7 @@ local TalentTree={ return Talents[5] end, function() - return Talents[7] + return Talents[8] end } diff --git a/ability_item_usage_shadow_shaman.lua b/ability_item_usage_shadow_shaman.lua index 4a3e65f2..76182adc 100644 --- a/ability_item_usage_shadow_shaman.lua +++ b/ability_item_usage_shadow_shaman.lua @@ -18,11 +18,11 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[1], Abilities[3], - Abilities[1], Abilities[2], Abilities[1], + Abilities[1], + Abilities[1], Abilities[4], Abilities[1], Abilities[3], diff --git a/ability_item_usage_silencer.lua b/ability_item_usage_silencer.lua index 0d08fc11..7a199de0 100644 --- a/ability_item_usage_silencer.lua +++ b/ability_item_usage_silencer.lua @@ -16,27 +16,19 @@ local AbilitiesReal ={} ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) -local AbilitiesReal = -{ - npcBot:GetAbilityByName(Abilities[1]), - npcBot:GetAbilityByName(Abilities[2]), - npcBot:GetAbilityByName(Abilities[3]), - npcBot:GetAbilityByName(Abilities[4]) -} - local AbilityToLevelUp= { Abilities[1], Abilities[3], + Abilities[1], Abilities[2], - Abilities[3], - Abilities[3], - Abilities[4], - Abilities[3], Abilities[1], + Abilities[4], Abilities[1], + Abilities[3], + Abilities[3], "talent", - Abilities[1], + Abilities[3], Abilities[4], Abilities[2], Abilities[2], diff --git a/ability_item_usage_skeleton_king.lua b/ability_item_usage_skeleton_king.lua index ed15caf0..1c2dc791 100644 --- a/ability_item_usage_skeleton_king.lua +++ b/ability_item_usage_skeleton_king.lua @@ -18,22 +18,22 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[2], Abilities[1], + Abilities[2], Abilities[1], Abilities[3], Abilities[1], Abilities[4], Abilities[1], - Abilities[2], - Abilities[2], - "talent", - Abilities[2], - Abilities[4], Abilities[3], Abilities[3], "talent", Abilities[3], + Abilities[4], + Abilities[2], + Abilities[2], + "talent", + Abilities[2], "nil", Abilities[4], "nil", diff --git a/ability_item_usage_skywrath_mage.lua b/ability_item_usage_skywrath_mage.lua index dc09f391..cfceb66e 100644 --- a/ability_item_usage_skywrath_mage.lua +++ b/ability_item_usage_skywrath_mage.lua @@ -46,7 +46,7 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[4] diff --git a/ability_item_usage_slardar.lua b/ability_item_usage_slardar.lua index 10f98180..1cc0870d 100644 --- a/ability_item_usage_slardar.lua +++ b/ability_item_usage_slardar.lua @@ -21,11 +21,11 @@ local AbilityToLevelUp= Abilities[2], Abilities[1], Abilities[2], - Abilities[3], + Abilities[1], Abilities[2], Abilities[4], Abilities[2], - Abilities[1], + Abilities[3], Abilities[1], "talent", Abilities[1], diff --git a/ability_item_usage_slark.lua b/ability_item_usage_slark.lua index eb148ab4..23a45c7f 100644 --- a/ability_item_usage_slark.lua +++ b/ability_item_usage_slark.lua @@ -18,22 +18,22 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[2], Abilities[3], + Abilities[2], Abilities[1], Abilities[1], Abilities[1], Abilities[4], Abilities[1], - Abilities[2], - Abilities[2], - "talent", - Abilities[2], - Abilities[4], Abilities[3], Abilities[3], "talent", Abilities[3], + Abilities[4], + Abilities[2], + Abilities[2], + "talent", + Abilities[2], "nil", Abilities[4], "nil", @@ -49,7 +49,7 @@ local TalentTree={ return Talents[2] end, function() - return Talents[3] + return Talents[4] end, function() return Talents[6] diff --git a/ability_item_usage_sniper.lua b/ability_item_usage_sniper.lua index 9b4a64c0..8c7f4b0c 100644 --- a/ability_item_usage_sniper.lua +++ b/ability_item_usage_sniper.lua @@ -19,13 +19,13 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { Abilities[2], - Abilities[3], + Abilities[1], Abilities[1], Abilities[3], Abilities[1], Abilities[4], Abilities[1], - Abilities[1], + Abilities[3], Abilities[3], "talent", Abilities[3], diff --git a/ability_item_usage_spectre.lua b/ability_item_usage_spectre.lua index dec79d2f..de86c112 100644 --- a/ability_item_usage_spectre.lua +++ b/ability_item_usage_spectre.lua @@ -18,10 +18,10 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { - Abilities[2], - Abilities[3], Abilities[1], + Abilities[3], Abilities[1], + Abilities[2], Abilities[1], Abilities[5], Abilities[1], diff --git a/ability_item_usage_sven.lua b/ability_item_usage_sven.lua index 9dabc20b..497606c5 100644 --- a/ability_item_usage_sven.lua +++ b/ability_item_usage_sven.lua @@ -47,7 +47,7 @@ local AbilityToLevelUp= local TalentTree={ function() - return Talents[1] + return Talents[2] end, function() return Talents[3] diff --git a/ability_item_usage_terrorblade.lua b/ability_item_usage_terrorblade.lua index 95ce7f83..e14f5efd 100644 --- a/ability_item_usage_terrorblade.lua +++ b/ability_item_usage_terrorblade.lua @@ -21,8 +21,8 @@ local AbilityToLevelUp= { Abilities[3], Abilities[1], - Abilities[1], Abilities[3], + Abilities[1], Abilities[3], Abilities[4], Abilities[3], diff --git a/ability_item_usage_tidehunter.lua b/ability_item_usage_tidehunter.lua index 3d373fc2..d4c834b9 100644 --- a/ability_item_usage_tidehunter.lua +++ b/ability_item_usage_tidehunter.lua @@ -47,7 +47,7 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[4] diff --git a/ability_item_usage_tiny.lua b/ability_item_usage_tiny.lua index 6d0d4c21..013c0a7c 100644 --- a/ability_item_usage_tiny.lua +++ b/ability_item_usage_tiny.lua @@ -20,15 +20,15 @@ local AbilityToLevelUp= { Abilities[3], Abilities[1], - Abilities[2], - Abilities[2], - Abilities[2], - Abilities[4], + Abilities[1], Abilities[2], Abilities[1], + Abilities[4], Abilities[1], + Abilities[2], + Abilities[2], "talent", - Abilities[1], + Abilities[2], Abilities[4], Abilities[3], Abilities[3], diff --git a/ability_item_usage_treant.lua b/ability_item_usage_treant.lua index 2fde07d3..c0485284 100644 --- a/ability_item_usage_treant.lua +++ b/ability_item_usage_treant.lua @@ -17,9 +17,9 @@ local AbilitiesReal ={} ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { + Abilities[1], Abilities[2], Abilities[3], - Abilities[1], Abilities[3], Abilities[3], Abilities[5], diff --git a/ability_item_usage_tusk.lua b/ability_item_usage_tusk.lua index dac7bd10..d3c96d89 100644 --- a/ability_item_usage_tusk.lua +++ b/ability_item_usage_tusk.lua @@ -53,10 +53,10 @@ local TalentTree={ return Talents[4] end, function() - return Talents[6] + return Talents[5] end, function() - return Talents[7] + return Talents[8] end } diff --git a/ability_item_usage_ursa.lua b/ability_item_usage_ursa.lua index a532ffb4..5b0b96c9 100644 --- a/ability_item_usage_ursa.lua +++ b/ability_item_usage_ursa.lua @@ -46,13 +46,13 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[3] end, function() - return Talents[5] + return Talents[6] end, function() return Talents[7] diff --git a/ability_item_usage_vengefulspirit.lua b/ability_item_usage_vengefulspirit.lua index 7e695aa2..b28001b8 100644 --- a/ability_item_usage_vengefulspirit.lua +++ b/ability_item_usage_vengefulspirit.lua @@ -46,7 +46,7 @@ local AbilityToLevelUp= } local TalentTree={ function() - return Talents[2] + return Talents[1] end, function() return Talents[4] diff --git a/ability_item_usage_venomancer.lua b/ability_item_usage_venomancer.lua index e65ec9a4..b0e2203a 100644 --- a/ability_item_usage_venomancer.lua +++ b/ability_item_usage_venomancer.lua @@ -25,15 +25,15 @@ local AbilityToLevelUp= Abilities[1], Abilities[4], Abilities[1], - Abilities[3], - Abilities[3], + Abilities[2], + Abilities[2], "talent", Abilities[3], Abilities[4], Abilities[3], - Abilities[2], + Abilities[3], "talent", - Abilities[2], + Abilities[3], "nil", Abilities[4], "nil", diff --git a/ability_item_usage_viper.lua b/ability_item_usage_viper.lua index a4a2e3c9..b60201b3 100644 --- a/ability_item_usage_viper.lua +++ b/ability_item_usage_viper.lua @@ -21,14 +21,14 @@ local AbilityToLevelUp= Abilities[1], Abilities[3], Abilities[1], - Abilities[2], + Abilities[3], Abilities[1], Abilities[4], Abilities[1], Abilities[3], Abilities[3], "talent", - Abilities[3], + Abilities[2], Abilities[4], Abilities[2], Abilities[2], @@ -52,7 +52,7 @@ local TalentTree={ return Talents[4] end, function() - return Talents[6] + return Talents[5] end, function() return Talents[8] diff --git a/ability_item_usage_warlock.lua b/ability_item_usage_warlock.lua index dd2edf4b..99b5ac52 100644 --- a/ability_item_usage_warlock.lua +++ b/ability_item_usage_warlock.lua @@ -50,7 +50,7 @@ local TalentTree={ return Talents[1] end, function() - return Talents[4] + return Talents[3] end, function() return Talents[5] diff --git a/ability_item_usage_weaver.lua b/ability_item_usage_weaver.lua index 2b85e733..6021c4b2 100644 --- a/ability_item_usage_weaver.lua +++ b/ability_item_usage_weaver.lua @@ -56,7 +56,7 @@ local TalentTree={ return Talents[6] end, function() - return Talents[7] + return Talents[8] end } diff --git a/ability_item_usage_windrunner.lua b/ability_item_usage_windrunner.lua index b8a054ea..21bd4ab8 100644 --- a/ability_item_usage_windrunner.lua +++ b/ability_item_usage_windrunner.lua @@ -20,13 +20,13 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { Abilities[3], - Abilities[1], - Abilities[2], Abilities[2], Abilities[2], - Abilities[3], + Abilities[1], Abilities[2], Abilities[4], + Abilities[2], + Abilities[3], Abilities[3], "talent", Abilities[3], diff --git a/ability_item_usage_winter_wyvern.lua b/ability_item_usage_winter_wyvern.lua index 567b24ae..394cb743 100644 --- a/ability_item_usage_winter_wyvern.lua +++ b/ability_item_usage_winter_wyvern.lua @@ -25,15 +25,15 @@ local AbilityToLevelUp= Abilities[2], Abilities[4], Abilities[2], - Abilities[3], - Abilities[3], - "talent", - Abilities[3], - Abilities[4], Abilities[1], Abilities[1], "talent", Abilities[1], + Abilities[4], + Abilities[3], + Abilities[3], + "talent", + Abilities[3], "nil", Abilities[4], "nil", diff --git a/ability_item_usage_witch_doctor.lua b/ability_item_usage_witch_doctor.lua index ba330ef6..f97e6261 100644 --- a/ability_item_usage_witch_doctor.lua +++ b/ability_item_usage_witch_doctor.lua @@ -21,14 +21,14 @@ local AbilityToLevelUp= Abilities[1], Abilities[3], Abilities[3], - Abilities[1], + Abilities[2], Abilities[3], Abilities[4], Abilities[3], Abilities[1], Abilities[1], "talent", - Abilities[2], + Abilities[1], Abilities[4], Abilities[2], Abilities[2], diff --git a/ability_item_usage_zuus.lua b/ability_item_usage_zuus.lua index c838f6ef..fa6006a0 100644 --- a/ability_item_usage_zuus.lua +++ b/ability_item_usage_zuus.lua @@ -19,8 +19,8 @@ ability_item_usage_generic.InitAbility(Abilities,AbilitiesReal,Talents) local AbilityToLevelUp= { Abilities[1], - Abilities[3], Abilities[2], + Abilities[1], Abilities[2], Abilities[2], Abilities[5], @@ -28,7 +28,7 @@ local AbilityToLevelUp= Abilities[1], Abilities[1], "talent", - Abilities[1], + Abilities[3], Abilities[5], Abilities[3], Abilities[3], @@ -268,7 +268,7 @@ Consider[2]=function() end --protect myself - local enemys2 = npcBot:GetNearbyHeroes( 500, true, BOT_MODE_NONE ); + local enemys2 = npcBot:GetNearbyHeroes( CastRange, true, BOT_MODE_NONE ); if(npcBot:WasRecentlyDamagedByAnyHero(5)) then for _,enemy in pairs( enemys2 )