Dota 2
BOT EXPERIMENT Credit:FURIOUSPUPPY
EyeofHades Apr 2, 2019 @ 7:37pm
Fixed Bane "Nightmare (End)" Behaviour & Looping Sounds Because BOTS Instantly Cancel It In Offline Mode
1. open "ability_item_usage_bane" with Notepad++ and find "function ConsiderE2()"
2. if you find it, make sure change the following text like below

here the script text below BEFORE and AFTER if you still confuse about it

_________________________________________________________________________

<<< BEFORE >>>

function ConsiderE2()

-- Make sure it's castable
if ( not abilityE2:IsFullyCastable() or abilityE2:IsHidden() ) then
return BOT_ACTION_DESIRE_NONE;
end

local tableNearbyAllyHeroes = npcBot:GetNearbyHeroes( 1200, false, BOT_MODE_NONE );
for _,npcAlly in pairs( tableNearbyAllyHeroes )
do
if ( mutil.StillHasModifier(npcAlly, 'modifier_bane_nightmare') )
then
return BOT_ACTION_DESIRE_HIGH;
end
end

if mutil.IsGoingOnSomeone(npcBot)
then
local npcTarget = npcBot:GetTarget();
if mutil.IsValidTarget(npcTarget) and mutil.IsInRange(npcTarget, npcBot, 1000) and mutil.StillHasModifier(npcTarget, 'modifier_bane_nightmare')
then
local allies = npcTarget:GetNearbyHeroes( 600, true, BOT_MODE_NONE );
local enemies = npcTarget:GetNearbyHeroes( 800, false, BOT_MODE_NONE );
if ( #allies >= 2 and #enemies == 1 )
then
return BOT_ACTION_DESIRE_HIGH;
end
end
end

return BOT_ACTION_DESIRE_NONE;

end
__________________________________________________________________________

<<< AFTER >>>

function ConsiderE2()

-- Make sure it's castable
if ( not abilityE2:IsFullyCastable() or abilityE2:IsHidden() ) then
return BOT_ACTION_DESIRE_NONE;
end

local tableNearbyAllyHeroes = npcBot:GetNearbyHeroes( 1200, false, BOT_MODE_NONE );
for _,npcAlly in pairs( tableNearbyAllyHeroes )
do
if ( mutil.StillHasModifier(npcAlly, 'modifier_bane_nightmare') )
then
return BOT_ACTION_DESIRE_HIGH;
end
end

if mutil.IsGoingOnSomeone(npcBot)
then
local npcTarget = npcBot:GetTarget();
if mutil.IsValidTarget(npcTarget) and mutil.IsInRange(npcTarget, npcBot, 1000) and mutil.StillHasModifier(npcTarget, 'modifier_bane_nightmare')
then
local allies = npcTarget:GetNearbyHeroes( 600, true, BOT_MODE_NONE );
local enemies = npcTarget:GetNearbyHeroes( 800, false, BOT_MODE_NONE );
if ( #allies >= 2 and #enemies == 1 )
then
return BOT_ACTION_DESIRE_NONE;
end
end
end

return BOT_ACTION_DESIRE_NONE;

end
__________________________________________________________________________


it's work fine for me, and i hope it will be officially fixed later
Last edited by EyeofHades; Apr 2, 2019 @ 8:18pm