Skip to content
Permalink
Browse files

fixed DAI not being able to morph tech facility

  • Loading branch information...
Damgam committed Jun 25, 2019
1 parent b28bf0b commit 1ac93af63e0ca3bf56cbf0b588d3463476697ece
Showing with 1 addition and 1 deletion.
  1. +1 −1 LuaRules/Gadgets/ai/EvoRTS/attackerbehaviour.lua
@@ -153,7 +153,7 @@ function AttackerBehaviour:AttackCell(type, nearestVisibleAcrossMap, nearestVisi
if nearestEnemyDistance >= self.myRange+50 or self.repairThisUnit == true or (UnitDefs[EnemyDefID].customParams and UnitDefs[EnemyDefID].customParams.armortype == "building") then
self.unit:Internal():EZMorph()
end
elseif (UnitDefs[unitDefID].name == "etech" or UnitDefs[unitDefID].name == "etech2") then
elseif (UnitDefs[unitDefID].name == "etech1" or UnitDefs[unitDefID].name == "etech2") then
self.unit:Internal():EZMorph()
return
elseif string.find(UnitDefs[unitDefID].name, "eorb") and ec > es*0.98 then

0 comments on commit 1ac93af

Please sign in to comment.
You can’t perform that action at this time.