Commit 7d2982ba authored by JoyJ's avatar JoyJ

cast D even disabled or disarmed

parent cf17139d
...@@ -275,8 +275,6 @@ function X.ConsiderD() ...@@ -275,8 +275,6 @@ function X.ConsiderD()
and J.CanCastOnNonMagicImmune( target ) and J.CanCastOnNonMagicImmune( target )
and J.CanCastOnTargetAdvanced( target ) and J.CanCastOnTargetAdvanced( target )
and J.IsInRange( target, bot, nCastRange ) and J.IsInRange( target, bot, nCastRange )
and not J.IsDisabled( target )
and not target:IsDisarmed()
then then
return BOT_ACTION_DESIRE_HIGH, target return BOT_ACTION_DESIRE_HIGH, target
end end
...@@ -357,7 +355,7 @@ function X.ConsiderR() ...@@ -357,7 +355,7 @@ function X.ConsiderR()
do do
if J.IsValid( nCreep ) if J.IsValid( nCreep )
and not nCreep:IsHero() and not nCreep:IsHero()
and not nCreep:IsAncientCreep() and (not nCreep:IsAncientCreep() or nSkillLV >= 2)
and not nCreep:IsMagicImmune() and not nCreep:IsMagicImmune()
and nCreep:GetHealth() > targetCreepBountyGoldMax and nCreep:GetHealth() > targetCreepBountyGoldMax
then then
......
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