Commit 11026a03 authored by JoyJ's avatar JoyJ

finish centaur

parent 7f714269
......@@ -32,9 +32,12 @@ tOutFitList['outfit_priest'] = {
"item_glimmer_cape",
"item_mekansm",
"item_ultimate_scepter",
"item_travel_boots",
"item_aghanims_shard",
"item_sphere",
"item_ultimate_scepter_2",
"item_radiance",
"item_travel_boots_2",
}
......@@ -44,12 +47,13 @@ tOutFitList['outfit_tank'] = {
"item_sange_and_yasha",
"item_aghanims_shard",
"item_solar_crest",
"item_travel_boots",
"item_black_king_bar",
"item_assault",
"item_ultimate_scepter",
"item_radiance",
"item_ultimate_scepter_2",
"item_monkey_king_bar",
"item_travel_boots_2",
}
tOutFitList['outfit_mid'] = tOutFitList['outfit_tank']
......@@ -61,11 +65,17 @@ tOutFitList['outfit_mage'] = tOutFitList['outfit_priest']
X['sBuyList'] = tOutFitList[sOutfitType]
X['sSellList'] = {
"item_shivas_guard",
"item_magic_wand",
"item_power_treads",
"item_quelling_blade",
"item_aether_lens",
"item_bracer",
"item_cyclone",
"item_magic_wand",
"item_heart",
"item_glimmer_cape",
"item_travel_boots",
"item_power_treads",
}
if J.Role.IsPvNMode() or J.Role.IsAllShadow() then X['sBuyList'], X['sSellList'] = { 'PvN_mage' }, {} end
......
......@@ -34,8 +34,10 @@ tOutFitList['outfit_priest'] = {
"item_mekansm",
"item_glimmer_cape",
"item_octarine_core",
"item_travel_boots",
"item_sphere",
"item_radiance",
"item_travel_boots_2",
}
tOutFitList['outfit_tank'] = {
......@@ -48,9 +50,11 @@ tOutFitList['outfit_tank'] = {
"item_rod_of_atos",
"item_octarine_core",
"item_gungir",
"item_travel_boots",
"item_heart",
"item_radiance",
"item_ultimate_scepter_2",
"item_travel_boots_2",
}
......@@ -63,8 +67,23 @@ tOutFitList['outfit_mage'] = tOutFitList['outfit_priest']
X['sBuyList'] = tOutFitList[sOutfitType]
X['sSellList'] = {
"item_power_treads",
"item_quelling_blade",
"item_glimmer_cape",
"item_magic_wand",
"item_aether_lens",
"item_bracer",
"item_heart",
"item_glimmer_cape",
"item_octarine_core",
"item_glimmer_cape",
"item_travel_boots",
"item_power_treads",
}
if J.Role.IsPvNMode() or J.Role.IsAllShadow() then X['sBuyList'], X['sSellList'] = { 'PvN_mage' }, {} end
......
......@@ -34,23 +34,31 @@ tOutFitList['outfit_carry'] = {
"item_yasha",
"item_black_king_bar",
"item_radiance",
"item_travel_boots",
"item_sange_and_yasha",
"item_basher",
"item_assault",
"item_abyssal_blade",
"item_travel_boots_2",
"item_aghanims_shard",
}
tOutFitList['outfit_tank'] = tOutFitList['outfit_carry']
tOutFitList['outfit_mid'] = tOutFitList['outfit_tank']
tOutFitList['outfit_mid'] = tOutFitList['outfit_carry']
tOutFitList['outfit_mage'] = tOutFitList['outfit_carry']
tOutFitList['outfit_priest'] = tOutFitList['outfit_priest']
tOutFitList['outfit_priest'] = tOutFitList['outfit_carry']
X['sBuyList'] = tOutFitList[sOutfitType]
X['sSellList'] = {
"item_power_treads",
"item_quelling_blade",
"item_black_king_bar",
"item_magic_wand",
"item_glimmer_cape",
"item_soul_ring",
"item_travel_boots",
"item_power_treads",
}
if J.Role.IsPvNMode() or J.Role.IsAllShadow() then X['sBuyList'], X['sSellList'] = { 'PvN_melee_carry' }, {} end
......
......@@ -27,12 +27,11 @@ local tOutFitList = {}
tOutFitList['outfit_tank'] = {
"item_centaur_outfit",
"item_bristleback_outfit",
"item_vanguard",
"item_aghanims_shard",
"item_hood_of_defiance",
"item_blink",
"item_boots_of_bearing",
"item_aghanims_shard",
"item_crimson_guard",
"item_pipe",
"item_heart",
......@@ -52,6 +51,13 @@ tOutFitList['outfit_mage'] = tOutFitList['outfit_tank']
X['sBuyList'] = tOutFitList[sOutfitType]
X['sSellList'] = {
"item_power_treads",
"item_quelling_blade",
"item_vanguard",
"item_bracer",
"item_blink",
"item_magic_wand",
}
......@@ -172,8 +178,8 @@ function X.ConsiderQ()
if J.IsValidHero( botTarget )
and J.IsInRange( botTarget, bot, nRadius - 90 )
and J.CanCastOnNonMagicImmune( botTarget )
and not J.IsDisabled( botTarget )
then
and (not J.IsDisabled( botTarget ) or J.GetRemainStunTime(botTarget)<0.5)
then
hCastTarget = botTarget
sCastMotive = 'Q-先手'..J.Chat.GetNormName( hCastTarget )
return BOT_ACTION_DESIRE_HIGH, sCastMotive
......@@ -219,6 +225,14 @@ function X.ConsiderW()
return BOT_ACTION_DESIRE_HIGH, aTarget, "W-攻击"
end
if target ~= nil
and target:IsAlive()
and J.IsInRange( target, bot, castRange )
and (nHP > 0.3 or J.WillMagicKillTarget(bot, target, nDamage,nCastPoint))
then
return BOT_ACTION_DESIRE_HIGH, aTarget, "W-攻击当前目标"
end
if (J.IsPushing( bot ) or J.IsDefending( bot )) and nHP > 0.7
then
local creeps = bot:GetNearbyLaneCreeps( castRange, true )
......
......@@ -43,7 +43,7 @@ X['sBuyList'] = {
"item_travel_boots",
"item_abyssal_blade",
"item_ultimate_scepter",
"item_moon_share",
"item_moon_shard",
"item_travel_boots_2",
"item_eagle",
"item_ultimate_scepter_2",
......
......@@ -255,6 +255,7 @@ local sFirstList = {
local sSecondList = {
"npc_dota_hero_abaddon",
"npc_dota_hero_centaur",
"npc_dota_hero_crystal_maiden",
"npc_dota_hero_zuus",
"npc_dota_hero_jakiro",
......@@ -287,7 +288,6 @@ local sThirdList = {
"npc_dota_hero_axe",
"npc_dota_hero_slark",
"npc_dota_hero_juggernaut",
"npc_dota_hero_centaur",
}
local sFourthList = {
......@@ -994,7 +994,7 @@ function Think()
end
--if GetTeam() ~= TEAM_DIRE and i == 1 then sSelectHero = "npc_dota_hero_alchemist" end
if GetTeam() ~= TEAM_DIRE and i == 3 then sSelectHero = "npc_dota_hero_centaur" end
--if GetTeam() ~= TEAM_DIRE and i == 3 then sSelectHero = "npc_dota_hero_centaur" end
-------******************************-----------------------------------------------
-- if GetTeam() ~= TEAM_DIRE and i == 2 then sSelectHero = "npc_dota_hero_lina" end
-- if GetTeam() ~= TEAM_DIRE and i == 1 then sSelectHero = "npc_dota_hero_antimage" end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment