Added _returnDamage parameter to damageCaching.

This commit is contained in:
Glowbal 2015-02-13 23:00:23 +01:00
parent 4441b7d0a5
commit cd5b06da78

View File

@ -118,14 +118,14 @@ if (_selectionName != "") then {
_cache_projectiles pushBack _projectile;
_cache_hitpoints pushBack (_hitPoints select (_hitSelections find _selectionName));
_cache_damages pushBack _newDamage;
_cache_params pushBack [_unit, _selectionName, _damage, _source, _projectile];
_cache_params pushBack [_unit, _selectionName, _damage, _source, _projectile, _returnDamage];
};
} else {
// This is an unhandled projectile
_cache_projectiles pushBack _projectile;
_cache_hitpoints pushBack (_hitPoints select (_hitSelections find _selectionName));
_cache_damages pushBack _newDamage;
_cache_params pushBack [_unit, _selectionName, _damage, _source, _projectile];
_cache_params pushBack [_unit, _selectionName, _damage, _source, _projectile, _returnDamage];
};
};