Commit 7d2982ba authored by JoyJ's avatar JoyJ

cast D even disabled or disarmed

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