Merge pull request #1591 from acemod/medicalFallingFix

Fixes _projectile not being updated
This commit is contained in:
Glowbal 2015-06-12 11:54:34 +02:00
commit 0aaabfde7c

View File

@ -52,6 +52,8 @@ if (GVAR(level) < 2) then {
_damageReturn = _this call FUNC(handleDamage_basic);
};
_newDamage = _this call FUNC(handleDamage_caching);
// handleDamage_caching may have modified the projectile string
_projectile = _this select 4;
_typeOfDamage = [_projectile] call FUNC(getTypeOfDamage);
_typeIndex = (GVAR(allAvailableDamageTypes) find _typeOfDamage);