void main()
{
object oPC = GetLastHostileActor();

effect eDMG1 = EffectDamageImmunityIncrease(DAMAGE_TYPE_ACID, 100);
effect eDMG2 = EffectDamageImmunityIncrease(DAMAGE_TYPE_BLUDGEONING, 100);
effect eDMG3 = EffectDamageImmunityIncrease(DAMAGE_TYPE_COLD, 100);
effect eDMG4 = EffectDamageImmunityIncrease(DAMAGE_TYPE_DIVINE, 100);
effect eDMG5 = EffectDamageImmunityIncrease(DAMAGE_TYPE_ELECTRICAL, 100);
effect eDMG6 = EffectDamageImmunityIncrease(DAMAGE_TYPE_FIRE, 100);
effect eDMG7 = EffectDamageImmunityIncrease(DAMAGE_TYPE_MAGICAL, 100);
effect eDMG8 = EffectDamageImmunityIncrease(DAMAGE_TYPE_NEGATIVE, 100);
effect eDMG9 = EffectDamageImmunityIncrease(DAMAGE_TYPE_POSITIVE, 100);
effect eDMG0 = EffectDamageImmunityIncrease(DAMAGE_TYPE_SONIC, 100);

ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG1, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG2, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG3, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG4, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG5, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG6, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG7, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG8, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG9, OBJECT_SELF);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDMG0, OBJECT_SELF);
}
