/// <summary> /// Calculates de (magic) damage done by the enchantment on a living entity based on level and entity passed. /// </summary> public override int CalcModifierLiving(int par1, EntityLiving par2EntityLiving) { if (DamageType == 0) { return(par1 * 3); } if (DamageType == 1 && par2EntityLiving.GetCreatureAttribute() == EnumCreatureAttribute.UNDEAD) { return(par1 * 4); } if (DamageType == 2 && par2EntityLiving.GetCreatureAttribute() == EnumCreatureAttribute.ARTHROPOD) { return(par1 * 4); } else { return(0); } }