level 11
function Consider2()
local npcBot = GetBot();
if ( not ability2:IsFullyCastable() )
then
return BOT_ACTION_DESIRE_NONE, 0;
end;
if ( cast4Desire > 0 )
then
return BOT_ACTION_DESIRE_NONE, 0;
end
local tableNearbyAttackingAlliedHeroes = npcBot:GetNearbyHeroes( 200, true, BOT_MODE_NONE );
if ( #tableNearbyAttackingAlliedHeroes >= 2 )
then
return BOT_ACTION_DESIRE_HIGH, 0;
end
if ( #tableNearbyAttackingAlliedHeroes >= 1 )
then
return BOT_ACTION_DESIRE_LOW, 0;
end
local locationAoE = npcBot:FindAoELocation( true, false, npcBot:GetLocation(), 0, 200, 0, 200 );
if ( locationAoE.count >= 3 ) then
return BOT_ACTION_DESIRE_LOW, 0;
end
return BOT_ACTION_DESIRE_NONE, 0;
end
2016年12月21日 14点12分
14
(大鱼人的踩 瞎写的 有很多问题 比如第二个if应该再多判断一下其他因素 先点灯再踩伤害是高但很可能就踩不到了)
2016年12月21日 14点12分
回复 沙漠上的白杨树 :实战里一般也是跳踩再点灯啦,没问题
2016年12月21日 14点12分