Issues with IPSafeAddItemProperty

Hello,

lately I’m trying to use “IPSafeAddItemProperty” to add on an item (armor) temporary bonuses based on the character level. Everything is fine until i try to put more than 3 “ItemPropertyDamageImmunity” on it.

E.g:

IPSafeAddItemProperty(oItem, ItemPropertyDamageImmunity(DAMAGE_TYPE_DIVINE, IP_CONST_DAMAGEIMMUNITY_10_PERCENT), 38400.0f, X2_IP_ADDPROP_POLICY_IGNORE_EXISTING);
IPSafeAddItemProperty(oItem, ItemPropertyDamageImmunity(DAMAGE_TYPE_POSITIVE, IP_CONST_DAMAGEIMMUNITY_10_PERCENT), 38400.0f, X2_IP_ADDPROP_POLICY_IGNORE_EXISTING);
IPSafeAddItemProperty(oItem, ItemPropertyDamageImmunity(DAMAGE_TYPE_MAGICAL, IP_CONST_DAMAGEIMMUNITY_10_PERCENT), 38400.0f, X2_IP_ADDPROP_POLICY_IGNORE_EXISTING);
IPSafeAddItemProperty(oItem, ItemPropertyDamageImmunity(DAMAGE_TYPE_NEGATIVE, IP_CONST_DAMAGEIMMUNITY_10_PERCENT), 38400.0f, X2_IP_ADDPROP_POLICY_IGNORE_EXISTING);

this will only trigger Divine Immunity…
Is there a way to solve this o bypass it in other ways?