Merge pull request #9736 from obrakmann/fix9693_lua-attack-broken
Fix broken scripted attacks in some missions
This commit is contained in:
@@ -91,9 +91,9 @@ WorldLoaded = function()
|
||||
|
||||
-- Don't "shoot" at the barrels if there is noone to shoot
|
||||
if not FleeingUnits[1].IsDead then
|
||||
FleeingUnits[1].Attack(Barrel)
|
||||
FleeingUnits[1].Attack(Barrel, true, true)
|
||||
elseif not FleeingUnits[2].IsDead then
|
||||
FleeingUnits[2].Attack(Barrel)
|
||||
FleeingUnits[2].Attack(Barrel, true, true)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -60,7 +60,7 @@ Players:
|
||||
Faction: allies
|
||||
ColorRamp: 161,134,236
|
||||
Allies: England, Soviet
|
||||
Enemies: USSR
|
||||
Enemies: USSR, Creeps
|
||||
PlayerReference@USSR:
|
||||
Name: USSR
|
||||
AllowBots: False
|
||||
|
||||
@@ -50,7 +50,7 @@ Players:
|
||||
Faction: allies
|
||||
ColorRamp: 161,134,236
|
||||
Allies: Soviet
|
||||
Enemies: USSR
|
||||
Enemies: USSR, Creeps
|
||||
PlayerReference@USSR:
|
||||
Name: USSR
|
||||
AllowBots: False
|
||||
|
||||
Reference in New Issue
Block a user