1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-03 13:12:11 +02:00

Merge pull request #168 from ComfyFactory/minor_fix

minor fix - normal units should not cast multiple projectiles
This commit is contained in:
Gerkiz 2021-11-14 22:10:56 +01:00 committed by GitHub
commit c2844be900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,7 +249,7 @@ local function extra_projectiles(cause, target)
local biter_health_boost_units = this.biter_health_boost_units local biter_health_boost_units = this.biter_health_boost_units
local cause_unit_number = cause.unit_number local cause_unit_number = cause.unit_number
local cause_health_pool = biter_health_boost_units[cause_unit_number] local cause_health_pool = biter_health_boost_units[cause_unit_number]
if cause_health_pool and cause_health_pool[3] and entity_types[cause.type] then if cause_health_pool and cause_health_pool[3] and cause_health_pool[3].healthbar_id and entity_types[cause.type] then
if this.acid_nova then if this.acid_nova then
if acid_lines[cause.name] then if acid_lines[cause.name] then
if not this.acid_lines_delay[cause_unit_number] then if not this.acid_lines_delay[cause_unit_number] then